Use clang-tidy to simplify boolean conditional return statements
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/AST/ASTImporter.cpp | ||
---|---|---|
401 ↗ | (On Diff #26487) | Isn't this the sort of chained conditional you/we decided not to flag/suggest changes on? |
lib/AST/Decl.cpp | ||
2380 | this should probably be: if (auto *CS = dyn_cast<CompoundStmt>(S)) return CS->body_empty(); return false; | |
lib/AST/DeclBase.cpp | ||
305 ↗ | (On Diff #26487) | another possible 'chain' style return |
lib/AST/DeclCXX.cpp | ||
409 | Another chain return | |
lib/AST/Expr.cpp | ||
2677 | Possible chain | |
lib/AST/ExprConstant.cpp | ||
225 | possible chain | |
2274 | possible chain | |
lib/AST/ItaniumMangle.cpp | ||
1869 ↗ | (On Diff #26487) | chain |
3728 ↗ | (On Diff #26487) | chain |
this should probably be: