[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


================
@@ -79,21 +81,39 @@ static std::string getDREAncestorString(const DeclRefExpr *DRE,
 } // namespace
 #endif /* NDEBUG */
 
-namespace clang::ast_matchers {
+class CustomMatcher {
----------------
ilya-biryukov wrote:

NIT: maybe rename to `FastMatcher`?

We should definitely add a comment explaning why we want this (i.e. we do not use matchers here to achieve better performance).

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


More information about the cfe-commits mailing list