[llvm-branch-commits] [cfe-branch] r105198 - in /cfe/branches/Apple/whitney/include/clang/Basic: DiagnosticGroups.td DiagnosticLexKinds.td

Daniel Dunbar daniel at zuster.org
Sun May 30 21:59:31 PDT 2010


Author: ddunbar
Date: Sun May 30 23:59:31 2010
New Revision: 105198

URL: http://llvm.org/viewvc/llvm-project?rev=105198&view=rev
Log:
Merge r105188:
--
Author: Chris Lattner <clattner at apple.com>
Date:   Sun May 30 23:42:10 2010 +0000

    make #warning warnings end up in their own diagnostic category.
    rdar://8042673

Modified:
    cfe/branches/Apple/whitney/include/clang/Basic/DiagnosticGroups.td
    cfe/branches/Apple/whitney/include/clang/Basic/DiagnosticLexKinds.td

Modified: cfe/branches/Apple/whitney/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/include/clang/Basic/DiagnosticGroups.td?rev=105198&r1=105197&r2=105198&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/branches/Apple/whitney/include/clang/Basic/DiagnosticGroups.td Sun May 30 23:59:31 2010
@@ -70,6 +70,8 @@
 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">;

Modified: cfe/branches/Apple/whitney/include/clang/Basic/DiagnosticLexKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney/include/clang/Basic/DiagnosticLexKinds.td?rev=105198&r1=105197&r2=105198&view=diff
==============================================================================
--- cfe/branches/Apple/whitney/include/clang/Basic/DiagnosticLexKinds.td (original)
+++ cfe/branches/Apple/whitney/include/clang/Basic/DiagnosticLexKinds.td Sun May 30 23:59:31 2010
@@ -106,7 +106,7 @@
 //===----------------------------------------------------------------------===//
 // 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<





More information about the llvm-branch-commits mailing list