[clang] [Clang] [NFC] Refactor more AST visitors (PR #116823)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 28 05:19:40 PST 2024


================
@@ -266,7 +265,7 @@ class RenameLocFinder : public RecursiveASTVisitor<RenameLocFinder> {
     return true;
   }
 
-  bool VisitDeclRefExpr(const DeclRefExpr *Expr) {
----------------
cor3ntin wrote:

This makes sense but it is not amazing.
How hard do you think it would be to introduce something like `MutableDynamicRecursiveASTVisitor` and preserve constness where possible?

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


More information about the cfe-commits mailing list