================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to