[cfe-commits] r130916 - /cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Ted Kremenek kremenek at apple.com
Wed May 4 21:37:05 PDT 2011


Author: kremenek
Date: Wed May  4 23:37:05 2011
New Revision: 130916

URL: http://llvm.org/viewvc/llvm-project?rev=130916&view=rev
Log:
Place "incompatible pointer types assigning..." warning under a flag, allowing it to be surgically mapped to an error.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=130916&r1=130915&r2=130916&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Wed May  4 23:37:05 2011
@@ -3185,7 +3185,8 @@
   "%select{assigning to|passing|returning|converting|initializing|sending|casting}2"
   " %0 "
   "%select{from|to parameter of type|from a function with result type|to type|"
-  "with an expression of type|to parameter of type|to type}2 %1">;
+  "with an expression of type|to parameter of type|to type}2 %1">,
+  InGroup<DiagGroup<"incompatible-pointer-types">>;
 def ext_typecheck_convert_discards_qualifiers : ExtWarn<
   "%select{assigning to|passing|returning|converting|initializing|sending|casting}2"
   " %0 "





More information about the cfe-commits mailing list