[clang-tools-extra] [clang-tidy][NFC] Don't qualify names unless strictly necessary (PR #185169)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 9 15:50:24 PDT 2026


================
@@ -42,7 +42,7 @@ class UnnecessaryCopyInitializationCheck : public ClangTidyCheck {
     const VarDecl &Var;
     const Stmt &BlockStmt;
     const DeclStmt &VarDeclStmt;
-    clang::ASTContext &ASTCtx;
+    ASTContext &ASTCtx;
----------------
vbvictor wrote:

making random guess, but could this be const? I don't think we typically mutate ASTCOntext in tidy

https://github.com/llvm/llvm-project/pull/185169


More information about the cfe-commits mailing list