]> granicus.if.org Git - clang/commitdiff
[analyzer] Cleanup: Null->0, comments.
authorAnna Zaks <ganna@apple.com>
Wed, 16 Nov 2011 19:58:05 +0000 (19:58 +0000)
committerAnna Zaks <ganna@apple.com>
Wed, 16 Nov 2011 19:58:05 +0000 (19:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144823 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/SVals.cpp

index b5980b96938a62a3c0750cc43f3c7333520e547d..309b6ea4242aabd6c723a518c00c5fefa06f9e33 100644 (file)
@@ -54,11 +54,11 @@ const FunctionDecl *SVal::getAsFunctionDecl() const {
       return CTR->getDecl();
   }
 
-  return NULL;
+  return 0;
 }
 
-/// getAsLocSymbol - If this SVal is a location (subclasses Loc) and
-///  wraps a symbol, return that SymbolRef.  Otherwise return 0.
+// If this SVal is a location (subclasses Loc) and wraps a symbol, return 
+// that SymbolRef.  Otherwise return 0.
 // FIXME: should we consider SymbolRef wrapped in CodeTextRegion?
 SymbolRef SVal::getAsLocSymbol() const {
   if (const nonloc::LocAsInteger *X = dyn_cast<nonloc::LocAsInteger>(this))
@@ -69,7 +69,7 @@ SymbolRef SVal::getAsLocSymbol() const {
     if (const SymbolicRegion *SymR = dyn_cast<SymbolicRegion>(R))
       return SymR->getSymbol();
   }
-  return NULL;
+  return 0;
 }
 
 /// Get the symbol in the SVal or its base region.