[clang] [analyzer] Fix format attribute handling in GenericTaintChecker (PR #132765)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 26 01:59:16 PDT 2025
=?utf-8?q?Don=C3=A1t?= Nagy <donat.nagy at ericsson.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/132765 at github.com>
================
@@ -161,3 +161,45 @@ void top() {
clang_analyzer_isTainted(A.data); // expected-warning {{YES}}
}
} // namespace gh114270
+
+
+namespace format_attribute {
+__attribute__((__format__ (__printf__, 1, 2)))
+void log_nonmethod(const char *fmt, ...);
----------------
steakhal wrote:
Can we call this `log_freefunc`?
https://github.com/llvm/llvm-project/pull/132765
More information about the cfe-commits
mailing list