[clang] [clang][analyzer] Add "pedantic" mode to StreamChecker. (PR #87322)

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 2 01:42:30 PDT 2024


================
@@ -1059,6 +1066,9 @@ void StreamChecker::evalFputx(const FnDescription *Desc, const CallEvent &Call,
 
   // Add transition for the failed state. The resulting value of the file
   // position indicator for the stream is indeterminate.
+  if (!PedanticMode)
+    return;
+
----------------
NagyDonat wrote:

```suggestion
  if (!PedanticMode)
    return;

  // Add transition for the failed state. The resulting value of the file
  // position indicator for the stream is indeterminate.
```

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


More information about the cfe-commits mailing list