[cfe-commits] r123228 - /cfe/trunk/lib/StaticAnalyzer/CFRefCount.cpp
Francois Pichet
pichet2000 at gmail.com
Tue Jan 11 02:41:37 PST 2011
Author: fpichet
Date: Tue Jan 11 04:41:37 2011
New Revision: 123228
URL: http://llvm.org/viewvc/llvm-project?rev=123228&view=rev
Log:
Rename GenericNodeBuilder to GenericNodeBuilderRefCount to avoid namespace clash using MSVC.
Modified:
cfe/trunk/lib/StaticAnalyzer/CFRefCount.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/CFRefCount.cpp?rev=123228&r1=123227&r2=123228&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/CFRefCount.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/CFRefCount.cpp Tue Jan 11 04:41:37 2011
@@ -91,17 +91,17 @@
}
namespace {
-class GenericNodeBuilder {
+class GenericNodeBuilderRefCount {
StmtNodeBuilder *SNB;
const Stmt *S;
const void *tag;
EndOfFunctionNodeBuilder *ENB;
public:
- GenericNodeBuilder(StmtNodeBuilder &snb, const Stmt *s,
+ GenericNodeBuilderRefCount(StmtNodeBuilder &snb, const Stmt *s,
const void *t)
: SNB(&snb), S(s), tag(t), ENB(0) {}
- GenericNodeBuilder(EndOfFunctionNodeBuilder &enb)
+ GenericNodeBuilderRefCount(EndOfFunctionNodeBuilder &enb)
: SNB(0), S(0), tag(0), ENB(&enb) {}
ExplodedNode *MakeNode(const GRState *state, ExplodedNode *Pred) {
@@ -1659,7 +1659,7 @@
ExplodedNode* ProcessLeaks(const GRState * state,
llvm::SmallVectorImpl<SymbolRef> &Leaked,
- GenericNodeBuilder &Builder,
+ GenericNodeBuilderRefCount &Builder,
ExprEngine &Eng,
ExplodedNode *Pred = 0);
@@ -1728,7 +1728,7 @@
SymbolReaper& SymReaper);
std::pair<ExplodedNode*, const GRState *>
- HandleAutoreleaseCounts(const GRState * state, GenericNodeBuilder Bd,
+ HandleAutoreleaseCounts(const GRState * state, GenericNodeBuilderRefCount Bd,
ExplodedNode* Pred, ExprEngine &Eng,
SymbolRef Sym, RefVal V, bool &stop);
// Return statements.
@@ -2891,7 +2891,7 @@
// Update the autorelease counts.
static unsigned autoreleasetag = 0;
- GenericNodeBuilder Bd(Builder, S, &autoreleasetag);
+ GenericNodeBuilderRefCount Bd(Builder, S, &autoreleasetag);
bool stop = false;
llvm::tie(Pred, state) = HandleAutoreleaseCounts(state , Bd, Pred, Eng, Sym,
X, stop);
@@ -3139,7 +3139,8 @@
//===----------------------------------------------------------------------===//
std::pair<ExplodedNode*, const GRState *>
-CFRefCount::HandleAutoreleaseCounts(const GRState * state, GenericNodeBuilder Bd,
+CFRefCount::HandleAutoreleaseCounts(const GRState * state,
+ GenericNodeBuilderRefCount Bd,
ExplodedNode* Pred,
ExprEngine &Eng,
SymbolRef Sym, RefVal V, bool &stop) {
@@ -3224,7 +3225,7 @@
ExplodedNode*
CFRefCount::ProcessLeaks(const GRState * state,
llvm::SmallVectorImpl<SymbolRef> &Leaked,
- GenericNodeBuilder &Builder,
+ GenericNodeBuilderRefCount &Builder,
ExprEngine& Eng,
ExplodedNode *Pred) {
@@ -3253,7 +3254,7 @@
EndOfFunctionNodeBuilder& Builder) {
const GRState *state = Builder.getState();
- GenericNodeBuilder Bd(Builder);
+ GenericNodeBuilderRefCount Bd(Builder);
RefBindings B = state->get<RefBindings>();
ExplodedNode *Pred = 0;
@@ -3292,7 +3293,7 @@
if (const RefVal* T = B.lookup(Sym)){
// Use the symbol as the tag.
// FIXME: This might not be as unique as we would like.
- GenericNodeBuilder Bd(Builder, S, Sym);
+ GenericNodeBuilderRefCount Bd(Builder, S, Sym);
bool stop = false;
llvm::tie(Pred, state) = HandleAutoreleaseCounts(state, Bd, Pred, Eng,
Sym, *T, stop);
@@ -3312,7 +3313,7 @@
static unsigned LeakPPTag = 0;
{
- GenericNodeBuilder Bd(Builder, S, &LeakPPTag);
+ GenericNodeBuilderRefCount Bd(Builder, S, &LeakPPTag);
Pred = ProcessLeaks(state, Leaked, Bd, Eng, Pred);
}
More information about the cfe-commits
mailing list