[clang] [NFC][analyzer] Add regression tests from bisection commits to the CSA's test suite (PR #241058)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 12 02:02:45 PST 2026
================
@@ -22,3 +22,11 @@ int compare(Data &a, Data &b) {
return compare(*aData, *bData); // no-warning
}
+
+void GH3206(char* a, char* b) {
+ if (a != b) {
+ if (a != nullptr || b == nullptr) {
+ a[0] = '\0'; // no-warning
+ }
+ }
+}
----------------
NagyDonat wrote:
> This is weird, in my IDE this does not look like this at all. Well, I just apply your suggestion. Thank you!
Your IDE probably displays tabs as two spaces.
https://github.com/llvm/llvm-project/pull/241058
More information about the cfe-commits
mailing list