[clang] 34558b0 - [StaticAnalyzer] Remove redundant declaration isStdSmartPtr (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 25 00:35:54 PST 2021
Author: Kazu Hirata
Date: 2021-12-25T00:35:41-08:00
New Revision: 34558b039b3baf057851b8d39f53402608da4927
URL: https://github.com/llvm/llvm-project/commit/34558b039b3baf057851b8d39f53402608da4927
DIFF: https://github.com/llvm/llvm-project/commit/34558b039b3baf057851b8d39f53402608da4927.diff
LOG: [StaticAnalyzer] Remove redundant declaration isStdSmartPtr (NFC)
An identical declaration is present just a couple of lines above the
line being removed in this patch.
Identified with readability-redundant-declaration.
Added:
Modified:
clang/lib/StaticAnalyzer/Checkers/SmartPtr.h
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Checkers/SmartPtr.h b/clang/lib/StaticAnalyzer/Checkers/SmartPtr.h
index 6a40f8eda5fa8..b4352b450c7fa 100644
--- a/clang/lib/StaticAnalyzer/Checkers/SmartPtr.h
+++ b/clang/lib/StaticAnalyzer/Checkers/SmartPtr.h
@@ -25,8 +25,6 @@ bool isStdSmartPtrCall(const CallEvent &Call);
bool isStdSmartPtr(const CXXRecordDecl *RD);
bool isStdSmartPtr(const Expr *E);
-bool isStdSmartPtr(const CXXRecordDecl *RD);
-
/// Returns whether the smart pointer is null or not.
bool isNullSmartPtr(const ProgramStateRef State, const MemRegion *ThisRegion);
More information about the cfe-commits
mailing list