[clang] [NFC][analyzer] Multipart checker refactor 2: NullabilityChecker (PR #132250)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 20 10:11:27 PDT 2025
=?utf-8?q?Donát?= Nagy <donat.nagy at ericsson.com>,
=?utf-8?q?Donát?= Nagy <donat.nagy at ericsson.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/132250 at github.com>
================
@@ -491,7 +503,7 @@ void NullabilityChecker::reportBugIfInvariantHolds(
N = C.addTransition(OriginalState, N);
}
- reportBug(Msg, Error, CK, N, Region, C.getBugReporter(), ValueExpr);
+ reportBug(Msg, Error, Idx, N, Region, C.getBugReporter(), ValueExpr);
----------------
steakhal wrote:
This feels like a technical difficulty.
You could create a `bug(checker)` member fn that gives you the right BugType. Or a reference member to the right BugType.
I'll have a look at your current PR tomorrow to give you concrete suggestions.
https://github.com/llvm/llvm-project/pull/132250
More information about the cfe-commits
mailing list