[PATCH] Make Clang error on enum increment/decrement in C++

Richard Trieu rtrieu at google.com
Wed Aug 7 20:01:52 PDT 2013


  Committed at r187955


================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:4847
@@ -4846,1 +4846,3 @@
+def err_increment_decrement_enum : Error<
+  "cannot %select{decrement|increment}0 expression of type %1">;
 def err_catch_incomplete_ptr : Error<
----------------
Richard Smith wrote:
> Maybe "... of enum type %1"?
Done


http://llvm-reviews.chandlerc.com/D1205



More information about the cfe-commits mailing list