[clang] a10d3d2 - [analyzer][NFC] Remove dangling method declaration from ErrnoChecker (#110820)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 2 04:32:48 PDT 2024
Author: DonĂ¡t Nagy
Date: 2024-10-02T13:32:45+02:00
New Revision: a10d3d2a3a82a577625ee8877853b4c4c9e2bbdc
URL: https://github.com/llvm/llvm-project/commit/a10d3d2a3a82a577625ee8877853b4c4c9e2bbdc
DIFF: https://github.com/llvm/llvm-project/commit/a10d3d2a3a82a577625ee8877853b4c4c9e2bbdc.diff
LOG: [analyzer][NFC] Remove dangling method declaration from ErrnoChecker (#110820)
Remove the declaration of `ErrnoChecker::checkBranchCondition()` because
this method is not defined or used anywhere. (It's probably a leftover
from some old refactoring.)
Added:
Modified:
clang/lib/StaticAnalyzer/Checkers/ErrnoChecker.cpp
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Checkers/ErrnoChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/ErrnoChecker.cpp
index 72fd6781a75615..beb3c8574b5fd4 100644
--- a/clang/lib/StaticAnalyzer/Checkers/ErrnoChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/ErrnoChecker.cpp
@@ -42,7 +42,6 @@ class ErrnoChecker
ArrayRef<const MemRegion *> ExplicitRegions,
ArrayRef<const MemRegion *> Regions,
const LocationContext *LCtx, const CallEvent *Call) const;
- void checkBranchCondition(const Stmt *Condition, CheckerContext &Ctx) const;
/// Indicates if a read (load) of \c errno is allowed in a non-condition part
/// of \c if, \c switch, loop and conditional statements when the errno
More information about the cfe-commits
mailing list