thakis created this revision. thakis added a reviewer: hans. thakis requested review of this revision.
CFGBuilder::addStmt() implicitly passes AddStmtChoice::AlwaysAdd to Visit() already, so this should have no behavior change. https://reviews.llvm.org/D111570 Files: clang/lib/Sema/AnalysisBasedWarnings.cpp Index: clang/lib/Sema/AnalysisBasedWarnings.cpp =================================================================== --- clang/lib/Sema/AnalysisBasedWarnings.cpp +++ clang/lib/Sema/AnalysisBasedWarnings.cpp @@ -2272,8 +2272,7 @@ .setAlwaysAdd(Stmt::CStyleCastExprClass) .setAlwaysAdd(Stmt::DeclRefExprClass) .setAlwaysAdd(Stmt::ImplicitCastExprClass) - .setAlwaysAdd(Stmt::UnaryOperatorClass) - .setAlwaysAdd(Stmt::AttributedStmtClass); + .setAlwaysAdd(Stmt::UnaryOperatorClass); } // Install the logical handler.
Index: clang/lib/Sema/AnalysisBasedWarnings.cpp =================================================================== --- clang/lib/Sema/AnalysisBasedWarnings.cpp +++ clang/lib/Sema/AnalysisBasedWarnings.cpp @@ -2272,8 +2272,7 @@ .setAlwaysAdd(Stmt::CStyleCastExprClass) .setAlwaysAdd(Stmt::DeclRefExprClass) .setAlwaysAdd(Stmt::ImplicitCastExprClass) - .setAlwaysAdd(Stmt::UnaryOperatorClass) - .setAlwaysAdd(Stmt::AttributedStmtClass); + .setAlwaysAdd(Stmt::UnaryOperatorClass); } // Install the logical handler.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits