[clang-tools-extra] [clang-tidy][NFC] Add `findTokenInRange` and reuse it (PR #183941)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 28 13:31:27 PST 2026
================
@@ -41,8 +42,213 @@ static CharSourceRange rangeFromAnnotations(const llvm::Annotations &A,
return CharSourceRange::getCharRange(Begin, End);
}
+static bool isRawIdentifierNamed(const Token &Tok, StringRef Name) {
+ return Tok.is(tok::raw_identifier) && Tok.getRawIdentifier() == Name;
+}
+
+static const CXXConstructorDecl *
+findFirstNonImplicitConstructor(const ASTContext &Context) {
----------------
vbvictor wrote:
This is needed only for only one test, can we make it in-place lambda to reduce scope?
https://github.com/llvm/llvm-project/pull/183941
More information about the cfe-commits
mailing list