Make helper functions static.

llvm-svn: 163505
This commit is contained in:
Benjamin Kramer 2012-09-10 11:57:16 +00:00
parent 47b5c5713b
commit 199f8da3ae
2 changed files with 5 additions and 5 deletions

View File

@ -732,9 +732,9 @@ public:
};
}
ProgramStateRef assumeExprIsNonNull(const Expr *NonNullExpr,
ProgramStateRef State,
CheckerContext &C) {
static ProgramStateRef assumeExprIsNonNull(const Expr *NonNullExpr,
ProgramStateRef State,
CheckerContext &C) {
SVal Val = State->getSVal(NonNullExpr, C.getLocationContext());
if (DefinedOrUnknownSVal *DV = dyn_cast<DefinedOrUnknownSVal>(&Val))
return State->assume(*DV, true);

View File

@ -80,8 +80,8 @@ void CallAndMessageChecker::emitBadCall(BugType *BT, CheckerContext &C,
C.EmitReport(R);
}
StringRef describeUninitializedArgumentInCall(const CallEvent &Call,
bool IsFirstArgument) {
static StringRef describeUninitializedArgumentInCall(const CallEvent &Call,
bool IsFirstArgument) {
switch (Call.getKind()) {
case CE_ObjCMessage: {
const ObjCMethodCall &Msg = cast<ObjCMethodCall>(Call);