diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-30 23:42:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-30 23:42:10 +0000 |
commit | 672bbf249175f6ff7a150cfef1882eee7bc4bb0b (patch) | |
tree | 1c93fd1918084e0fbdff9cf39b876cea34ecac05 | |
parent | 571339c215dc3fa44acccb89c7c6b1d5b962b7f2 (diff) |
make #warning warnings end up in their own diagnostic category.
rdar://8042673
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105188 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticGroups.td | 2 | ||||
-rw-r--r-- | include/clang/Basic/DiagnosticLexKinds.td | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index b79bf8e2ed..507ef1ce0b 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -70,6 +70,8 @@ def : DiagGroup<"overflow">; def : DiagGroup<"overloaded-virtual">; def : DiagGroup<"packed">; def PointerArith : DiagGroup<"pointer-arith">; +def PoundWarning : DiagGroup<"#warnings">, + DiagCategory<"#warning Directive">; def : DiagGroup<"pointer-to-int-cast">; def : DiagGroup<"redundant-decls">; def ReturnType : DiagGroup<"return-type">; diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index 848e85c8ba..0fd138b0eb 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -106,7 +106,7 @@ def err_invalid_pth_file : Error< //===----------------------------------------------------------------------===// // Preprocessor Diagnostics //===----------------------------------------------------------------------===// -def pp_hash_warning : Warning<"#warning%0">, InGroup<DiagGroup<"#warnings">>; +def pp_hash_warning : Warning<"#warning%0">, InGroup<PoundWarning>; def pp_include_next_in_primary : Warning< "#include_next in primary source file">; def pp_include_macros_out_of_predefines : Error< |