diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-04-04 00:15:10 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-04-04 00:15:10 +0000 |
commit | e145bfd06c7eaf0cff0f7d825d1c6244127c26df (patch) | |
tree | f5dbff175708cb1572f5608e928dd9e332458d44 /include/clang/Basic | |
parent | d1cc514a6ac03f34de0aa5a4f4010d21d650d8f9 (diff) |
Make the ObjC attributes diagnostics a bit more informative.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/DiagnosticParseKinds.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticParseKinds.td b/include/clang/Basic/DiagnosticParseKinds.td index 26820dbddf..04a433c0a6 100644 --- a/include/clang/Basic/DiagnosticParseKinds.td +++ b/include/clang/Basic/DiagnosticParseKinds.td @@ -401,6 +401,9 @@ def err_objc_unexpected_attr : Error< "prefix attribute must be followed by an interface or protocol">; def err_objc_postfix_attribute : Error < "postfix attributes are not allowed on Objective-C directives">; +def err_objc_postfix_attribute_hint : Error < + "postfix attributes are not allowed on Objective-C directives, place" + " them in front of '%select{@interface|@protocol}0'">; def err_objc_directive_only_in_protocol : Error< "directive may only be specified in protocols only">; def err_missing_catch_finally : Error< |