summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-10-28 13:54:16 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-10-28 13:54:16 +0000
commite003ca2a03b2b4d776628183c988f0e15c44240c (patch)
tree4cd430467ab5ae850a5f299c31b4d1c9e0a4ae8b /clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
parent8eb2a18a9fc0f9a4cfc1b1bc419d784b38a975ae (diff)
downloadbcm5719-llvm-e003ca2a03b2b4d776628183c988f0e15c44240c.tar.gz
bcm5719-llvm-e003ca2a03b2b4d776628183c988f0e15c44240c.zip
Put global classes into the appropriate namespace.
Most of the cases belong into an anonymous namespace. No functionality change intended. llvm-svn: 251514
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
index db2416c5384..f983c308563 100644
--- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
@@ -2192,6 +2192,7 @@ PathDiagnosticPiece *CFRefReportVisitor::VisitNode(const ExplodedNode *N,
return P;
}
+namespace {
// Find the first node in the current function context that referred to the
// tracked symbol and the memory location that value was stored to. Note, the
// value is only reported if the allocation occurred in the same function as
@@ -2206,6 +2207,7 @@ struct AllocationInfo {
const LocationContext *InInterestingMethodContext) :
N(InN), R(InR), InterestingMethodContext(InInterestingMethodContext) {}
};
+} // end anonymous namespace
static AllocationInfo
GetAllocationSite(ProgramStateManager& StateMgr, const ExplodedNode *N,
OpenPOWER on IntegriCloud