[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 3 07:06:04 PST 2025


================
@@ -1048,7 +1197,10 @@ class FixableGadget : public Gadget {
   }
 };
 
-static auto toSupportedVariable() { return to(varDecl()); }
+static auto toSupportedVariable(const DeclRefExpr &Node) {
----------------
ilya-biryukov wrote:

NIT: replace `auto` with `bool`, rename to `isSupportedVariable` since it's now a predicate function.

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


More information about the cfe-commits mailing list