[clang] [analyzer] Report violations of the "returns_nonnull" attribute (PR #106048)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 26 06:38:55 PDT 2024
================
@@ -1,4 +1,6 @@
-// RUN: %clang_analyze_cc1 -fblocks -analyzer-checker=core,nullability -Wno-deprecated-non-prototype -verify %s
+// RUN: %clang_analyze_cc1 -fblocks -analyzer-checker=core,nullability,debug.ExprInspection -Wno-deprecated-non-prototype -verify %s
----------------
NagyDonat wrote:
Consider eliminating the use of `-Wno-deprecated-non-prototype` by specifiying the parameter lists of functions. (Note that this is C, so you need `return_t funcname(void)` to specify a function that takes no arguments.)
https://github.com/llvm/llvm-project/pull/106048
More information about the cfe-commits
mailing list