[clang] Optimize -Wunsafe-buffer-usage. (PR #124554)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 27 09:17:58 PST 2025
================
@@ -186,106 +205,202 @@ class MatchDescendantVisitor : public DynamicRecursiveASTVisitor {
return DynamicRecursiveASTVisitor::TraverseStmt(Node);
}
+ void set_ast_context(ASTContext &Context) { ActiveASTContext = &Context; }
----------------
ilya-biryukov wrote:
NIT: `setASTContext` and `setHandler` to follow LLVM naming conventions?
https://github.com/llvm/llvm-project/pull/124554
More information about the cfe-commits
mailing list