]> granicus.if.org Git - clang/commitdiff
[Parser] Remove "add -fmodules" from the "use of '@import' when modules are disabled...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 17 Apr 2014 02:32:52 +0000 (02:32 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 17 Apr 2014 02:32:52 +0000 (02:32 +0000)
We disable modules for C++, at which point this is confusing.
rdar://16641918

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206440 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticParseKinds.td
test/Parser/check-objc2-syntax-1.m

index 0b067842feb4e966a142b5d9707620bf99179e2e..6cb7a55db43a1215516788fc6fe4444d56b3404e 100644 (file)
@@ -225,7 +225,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, add -fmodules">;
+"use of '@import' when modules are disabled">;
 
 def err_invalid_reference_qualifier_application : Error<
   "'%0' qualifier may not be applied to a reference">;
index 6c30096cdd6381495a9985dd5b09ed65a7a3fc36..364f826776c81747f4366bbdaa64001c963cf6ce 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -fsyntax-only -verify %s
 
 // rdar://15505492
-@import Foundation; // expected-error {{use of '@import' when modules are disabled, add -fmodules}}
+@import Foundation; // expected-error {{use of '@import' when modules are disabled}}
 
 @interface Subclass 
 + (int)magicNumber;