[cfe-commits] r163505 - in /cfe/trunk/lib/StaticAnalyzer/Checkers: BasicObjCFoundationChecks.cpp CallAndMessageChecker.cpp

Benjamin Kramer benny.kra at googlemail.com
Mon Sep 10 04:57:17 PDT 2012


Author: d0k
Date: Mon Sep 10 06:57:16 2012
New Revision: 163505

URL: http://llvm.org/viewvc/llvm-project?rev=163505&view=rev
Log:
Make helper functions static.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
    cfe/trunk/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp?rev=163505&r1=163504&r2=163505&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp Mon Sep 10 06:57:16 2012
@@ -732,9 +732,9 @@
 };
 }
 
-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);

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp?rev=163505&r1=163504&r2=163505&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp Mon Sep 10 06:57:16 2012
@@ -80,8 +80,8 @@
   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);





More information about the cfe-commits mailing list