diff options
author | Serge Pavlov <sepavloff@gmail.com> | 2014-12-12 06:37:55 +0000 |
---|---|---|
committer | Serge Pavlov <sepavloff@gmail.com> | 2014-12-12 06:37:55 +0000 |
commit | 2a33f6edb1f8142a61b10efccae042cb082fb1d7 (patch) | |
tree | 3b42eea832c374f81f297c2e12bda395aeeb8c64 /include/clang/Basic/DiagnosticLexKinds.td | |
parent | bb657de5a6865a18bb25b25eda4da2cb293f94c2 (diff) |
Do not warn on keyword undef
#undef a keyword is generally harmless but used often in configuration scripts.
Also added tests that I forgot to include to commit in r223114.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticLexKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticLexKinds.td | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index 5eb9e65953..325ab0e433 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -291,12 +291,10 @@ def note_pp_ambiguous_macro_chosen : Note< def note_pp_ambiguous_macro_other : Note< "other definition of %0">; def warn_pp_macro_hides_keyword : Warning< - "keyword or reserved identifier is hidden by macro definition">, + "keyword is hidden by macro definition">, InGroup<KeywordAsMacro>; def warn_pp_macro_is_reserved_id : Warning< - "macro name is a keyword or reserved identifier">, InGroup<KeywordAsMacro>; -def warn_pp_defundef_reserved_ident : Warning< - "reserved identifier is used as macro name">, DefaultIgnore, + "macro name is a reserved identifier">, DefaultIgnore, InGroup<ReservedIdAsMacro>; def pp_invalid_string_literal : Warning< |