[clang] [analyzer][NFC] Add option assume-one-iteration (PR #125494)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 3 07:40:31 PST 2025


================
@@ -294,6 +294,16 @@ ANALYZER_OPTION(
     bool, ShouldUnrollLoops, "unroll-loops",
     "Whether the analysis should try to unroll loops with known bounds.", false)
 
+ANALYZER_OPTION(
+    bool, ShouldAssumeOneIteration, "assume-one-iteration",
+    "Whether the analyzer should always assume at least one iteration in "
----------------
NagyDonat wrote:

I agree, but I cannot think of a name that reflects that without being awkwardly long. Perhaps "may-assume-skipped-loop" (with a negated meaning i.e. the default is true)?

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


More information about the cfe-commits mailing list