[clang] [analyzer] Model [[assume]] attributes without side-ffects (PR #130418)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 11 05:37:33 PDT 2025


================
@@ -91,8 +91,29 @@ QualType getOverflowBuiltinResultType(const CallEvent &Call, CheckerContext &C,
   }
 }
 
-class BuiltinFunctionChecker : public Checker<eval::Call> {
+class BuiltinFunctionChecker
+    : public Checker<eval::Call, check::PostStmt<AttributedStmt>> {
 public:
+  void checkPostStmt(const AttributedStmt *A, CheckerContext &C) const {
----------------
steakhal wrote:

Fixed!

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


More information about the cfe-commits mailing list