steakhal wrote:
The unittest failure is relevant. Something like this should fix it:
```diff
diff --git a/clang/unittests/StaticAnalyzer/BlockEntranceCallbackTest.cpp
b/clang/unittests/StaticAnalyzer/BlockEntranceCallbackTest.cpp
@@ -361,7 +361,8 @@ TEST(BlockEntranceTester, BlockEntranceVSBranchCondition) {
"Within 'top' B4 -> B5",
"Within 'top' B5 -> B3",
"Within 'top' B6 -> B4",
- "Within 'top': branch condition 'x == 6'",
+ "Within 'top': branch condition 'x == 6'", // 'if (x == 6)'
+ "Within 'top': branch condition 'x'", // `switch (x)'
}),
Diags);
}
```
https://github.com/llvm/llvm-project/pull/182058
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits