[clang-tools-extra] [clang-tidy] Enhance modernize-use-starts-ends-with to handle substr patterns (PR #116033)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 17 17:55:02 PST 2024
================
@@ -30,6 +30,17 @@ struct NotLengthExprForStringNode {
IntegerLiteralSizeNode->getValue().getZExtValue();
}
+ if (const auto *DeclRefNode = Node.get<DeclRefExpr>()) {
----------------
HerrCai0907 wrote:
llvm code guideline wants to ignore `{}` for `if` / `for` with single statement in body.
https://github.com/llvm/llvm-project/pull/116033
More information about the cfe-commits
mailing list