[PATCH] Warn on suspicious increments/decrements in for loops

Dmitri Gribenko gribozavr at gmail.com
Fri May 31 10:43:15 PDT 2013


  Does this trigger on anything in LLVM or Clang?


================
Comment at: lib/Sema/SemaStmt.cpp:1447-1449
@@ +1446,5 @@
+  // A visitor to determine if a continue statement is a subexpression.
+  class ContinueFinder : public EvaluatedExprVisitor<ContinueFinder> {
+  bool Found;
+public:
+  ContinueFinder(Sema &S, Stmt* Body) :
----------------
Indentation is weird here.


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



More information about the cfe-commits mailing list