Make some helper functions static. NFC.
llvm-svn: 353705
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
index 0366910..927e9ae 100644
--- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
@@ -182,7 +182,7 @@
return None;
}
-Optional<std::string> findMetaClassAlloc(const Expr *Callee) {
+static Optional<std::string> findMetaClassAlloc(const Expr *Callee) {
if (const auto *ME = dyn_cast<MemberExpr>(Callee)) {
if (ME->getMemberDecl()->getNameAsString() != "alloc")
return None;
@@ -200,8 +200,7 @@
return None;
}
-std::string findAllocatedObjectName(const Stmt *S,
- QualType QT) {
+static std::string findAllocatedObjectName(const Stmt *S, QualType QT) {
if (const auto *CE = dyn_cast<CallExpr>(S))
if (auto Out = findMetaClassAlloc(CE->getCallee()))
return *Out;