[clang] [NFC][analyzer] Conversion to CheckerFamily: CStringChecker (PR #150971)
Donát Nagy via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 29 00:35:32 PDT 2025
================
@@ -845,17 +825,11 @@ void CStringChecker::emitOutOfBoundsBug(CheckerContext &C,
ProgramStateRef State, const Stmt *S,
StringRef WarningMsg) const {
if (ExplodedNode *N = C.generateErrorNode(State)) {
- if (!BT_Bounds)
- BT_Bounds.reset(new BugType(Filter.CheckCStringOutOfBounds
- ? Filter.CheckNameCStringOutOfBounds
- : Filter.CheckNameCStringNullArg,
----------------
NagyDonat wrote:
This ternary operator was – fortunately – dead code: this method was only called when `Filter.CheckCStringOutOfBounds` was true.
https://github.com/llvm/llvm-project/pull/150971
More information about the cfe-commits
mailing list