[clang-tools-extra] [clang-tidy][NFC] Don't qualify names unless strictly necessary (PR #185169)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 11 05:04:19 PDT 2026
================
@@ -42,7 +42,7 @@ class UnnecessaryCopyInitializationCheck : public ClangTidyCheck {
const VarDecl &Var;
const Stmt &BlockStmt;
const DeclStmt &VarDeclStmt;
- clang::ASTContext &ASTCtx;
+ ASTContext &ASTCtx;
----------------
localspook wrote:
>From a cursory glance, making it const would require making a bunch of helper functions in the `.cpp` take it by const reference, which would require making `utils::fixit::changeVarDeclToReference` take it by const reference... I think it *could* be const, but chasing down all the places warrants a different PR
https://github.com/llvm/llvm-project/pull/185169
More information about the cfe-commits
mailing list