[clang] [analyzer][NFC] Remove dangling method declaration from ErrnoChecker (PR #110820)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 2 03:35:46 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: DonĂ¡t Nagy (NagyDonat)

<details>
<summary>Changes</summary>

Remove the declaration of `ErrnoChecker::checkBranchCondition()` because this method is not defined or used anywhere. (It's probably a leftover from some old refactoring.)

---
Full diff: https://github.com/llvm/llvm-project/pull/110820.diff


1 Files Affected:

- (modified) clang/lib/StaticAnalyzer/Checkers/ErrnoChecker.cpp (-1) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/110820


More information about the cfe-commits mailing list