[clang] [analyzer][NFC] Remove dangling method declaration from ErrnoChecker (PR #110820)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 2 03:35:14 PDT 2024
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/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.)
>From 72bc17b87a7955a58210dfe42d7d73b6c0c6803c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Don=C3=A1t=20Nagy?= <donat.nagy at ericsson.com>
Date: Wed, 2 Oct 2024 12:24:44 +0200
Subject: [PATCH] [analyzer][NFC] Remove dangling method declaration from
ErrnoChecker
Remove the declaration of `ErrnoChecker::checkBranchCondition()` because
this method is not defined or used anywhere. (It's probably a leftover
from some old refactoring.)
---
clang/lib/StaticAnalyzer/Checkers/ErrnoChecker.cpp | 1 -
1 file changed, 1 deletion(-)
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