diff --git a/include/clang/Basic/DiagnosticParseKinds.td b/include/clang/Basic/DiagnosticParseKinds.td index 2641616028c5dbd468c15f704badd21e0f66bc90..19b95cd5bd93945095c730fec489cf42dbacac37 100644 --- a/include/clang/Basic/DiagnosticParseKinds.td +++ b/include/clang/Basic/DiagnosticParseKinds.td @@ -243,10 +243,7 @@ def err_expected_property_name : Error<"expected property name">; def err_unexpected_at : Error<"unexpected '@' in program">; def err_atimport : Error< - "use of '@import' when modules are disabled">; -def err_atimport_cxx : Error< - "use of '@import' when C++ modules are disabled, consider using fmodules " - "and fcxx-modules">; +"use of '@import' when modules are disabled">; def err_invalid_reference_qualifier_application : Error< "'%0' qualifier may not be applied to a reference">; diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp index 68768e1835544d899441e6cd867b5c8ba0aabec7..81761bf8d2d89535399793a61527db34d750e5c5 100644 --- a/lib/Parse/ParseObjc.cpp +++ b/lib/Parse/ParseObjc.cpp @@ -83,10 +83,7 @@ Parser::DeclGroupPtrTy Parser::ParseObjCAtDirectives() { case tok::objc_import: if (getLangOpts().Modules || getLangOpts().DebuggerSupport) return ParseModuleImport(AtLoc); - if (getLangOpts().CPlusPlus) - Diag(AtLoc, diag::err_atimport_cxx); - else - Diag(AtLoc, diag::err_atimport); + Diag(AtLoc, diag::err_atimport); SkipUntil(tok::semi); return Actions.ConvertDeclToDeclGroup(nullptr); default: diff --git a/test/Modules/check-syntax.mm b/test/Modules/check-syntax.mm deleted file mode 100644 index ebb4bd3faf3fd3eb56f49b9045411222a6032024..0000000000000000000000000000000000000000 --- a/test/Modules/check-syntax.mm +++ /dev/null @@ -1,5 +0,0 @@ -// RUN: not %clang -fmodules -fno-cxx-modules -fsyntax-only %s 2>&1 | FileCheck %s -// rdar://19399671 - -// CHECK: use of '@import' when C++ modules are disabled -@import Foundation;