[PATCH] D10892: warning when inner condition is identical
Daniel Marjamäki via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 10 00:56:58 PDT 2015
danielmarjamaki accepted this revision.
danielmarjamaki added a reviewer: danielmarjamaki.
danielmarjamaki marked 6 inline comments as done.
This revision is now accepted and ready to land.
================
Comment at: lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp:120
@@ +119,3 @@
+ if (InnerIf && isIdenticalStmt(AC->getASTContext(), I->getCond(), InnerIf->getCond(), /*ignoreSideEffects=*/ false)) {
+ PathDiagnosticLocation ELoc(InnerIf->getCond(), BR.getSourceManager(), AC);
+ BR.EmitBasicReport(AC->getDecl(), Checker, "Identical conditions",
----------------
Removed
================
Comment at: lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp:125
@@ +124,3 @@
+ ELoc);
+ }
+ }
----------------
I removed Sr
http://reviews.llvm.org/D10892
More information about the cfe-commits
mailing list