r329170 - Make helpers static. NFC.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 4 04:45:11 PDT 2018
Author: d0k
Date: Wed Apr 4 04:45:11 2018
New Revision: 329170
URL: http://llvm.org/viewvc/llvm-project?rev=329170&view=rev
Log:
Make helpers static. NFC.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
cfe/trunk/lib/StaticAnalyzer/Core/WorkList.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp?rev=329170&r1=329169&r2=329170&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp Wed Apr 4 04:45:11 2018
@@ -914,11 +914,8 @@ static bool isInitializationOfVar(const
}
/// Show diagnostics for initializing or declaring a region \p R with a bad value.
-void showBRDiagnostics(const char *action,
- llvm::raw_svector_ostream& os,
- const MemRegion *R,
- SVal V,
- const DeclStmt *DS) {
+static void showBRDiagnostics(const char *action, llvm::raw_svector_ostream &os,
+ const MemRegion *R, SVal V, const DeclStmt *DS) {
if (R->canPrintPretty()) {
R->printPretty(os);
os << " ";
Modified: cfe/trunk/lib/StaticAnalyzer/Core/WorkList.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/WorkList.cpp?rev=329170&r1=329169&r2=329170&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/WorkList.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/WorkList.cpp Wed Apr 4 04:45:11 2018
@@ -190,6 +190,7 @@ std::unique_ptr<WorkList> WorkList::make
return llvm::make_unique<UnexploredFirstStack>();
}
+namespace {
class UnexploredFirstPriorityQueue : public WorkList {
using BlockID = unsigned;
using LocIdentifier = std::pair<BlockID, const StackFrameContext *>;
@@ -246,6 +247,7 @@ public:
return U.first;
}
};
+} // namespace
std::unique_ptr<WorkList> WorkList::makeUnexploredFirstPriorityQueue() {
return llvm::make_unique<UnexploredFirstPriorityQueue>();
More information about the cfe-commits
mailing list