[analyzer] Remove unused methods, add comments to others.

llvm-svn: 141098
This commit is contained in:
Anna Zaks 2011-10-04 18:34:40 +00:00
parent 539f7b0493
commit c76ec12ccf
2 changed files with 8 additions and 18 deletions

View File

@ -107,6 +107,8 @@ public:
return Eng.isObjCGCEnabled();
}
/// \brief Generate a default checker node (containing checker tag but no
/// checker state changes).
ExplodedNode *generateNode(bool autoTransition = true) {
assert(statement && "Only transitions with statements currently supported");
ExplodedNode *N = generateNodeImpl(statement, getState(), false,
@ -116,18 +118,8 @@ public:
return N;
}
ExplodedNode *generateNode(const Stmt *stmt,
const ProgramState *state,
bool autoTransition = true,
const ProgramPointTag *tag = 0) {
assert(state);
ExplodedNode *N = generateNodeImpl(stmt, state, false,
tag ? tag : checkerTag);
if (N && autoTransition)
addTransition(N);
return N;
}
/// \brief Generate a new checker node with the given predecessor.
/// Allows checkers to generate a chain of nodes.
ExplodedNode *generateNode(const ProgramState *state,
ExplodedNode *pred,
bool autoTransition = true) {
@ -138,6 +130,7 @@ public:
return N;
}
/// \brief Generate a new checker node.
ExplodedNode *generateNode(const ProgramState *state,
bool autoTransition = true,
const ProgramPointTag *tag = 0) {
@ -149,11 +142,8 @@ public:
return N;
}
ExplodedNode *generateSink(const Stmt *stmt, const ProgramState *state = 0) {
return generateNodeImpl(stmt, state ? state : getState(), true,
checkerTag);
}
/// \brief Generate a sink node. Generating sink stops exploration of the
/// given path.
ExplodedNode *generateSink(const ProgramState *state = 0) {
assert(statement && "Only transitions with statements currently supported");
return generateNodeImpl(statement, state ? state : getState(), true,

View File

@ -77,7 +77,7 @@ void NoReturnFunctionChecker::checkPostStmt(const CallExpr *CE,
}
if (BuildSinks)
C.generateSink(CE);
C.generateSink();
}
static bool END_WITH_NULL isMultiArgSelector(const Selector *Sel, ...) {