]> granicus.if.org Git - clang/commitdiff
Rename Sema::isNullExpr() -> Sema::isSentinelNullExpr() which is more descriptive.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 24 Jan 2012 03:13:57 +0000 (03:13 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 24 Jan 2012 03:13:57 +0000 (03:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148772 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp

index 309d191aa9444cb92f645bd4e3c6568a61015855..ecff2ec58d1dfe7fa5c9c52477a82198ad6f4f19 100644 (file)
@@ -1375,7 +1375,7 @@ public:
                                  QualType &ConvertedType);
   bool IsBlockPointerConversion(QualType FromType, QualType ToType,
                                 QualType& ConvertedType);
-  bool isNullExpr(const Expr *E) const;
+  bool isSentinelNullExpr(const Expr *E) const;
   bool FunctionArgTypesAreEqual(const FunctionProtoType *OldType,
                                 const FunctionProtoType *NewType,
                                 unsigned *ArgPos = 0);
index 8d263b3b66242a2895f3e6a55a7e03dc2b7c70c9..2d32ea9a066bc98f1e7a306a404f8ace45ab516e 100644 (file)
@@ -249,7 +249,7 @@ void Sema::DiagnoseSentinelCalls(NamedDecl *D, SourceLocation Loc,
   Expr *sentinelExpr = args[numArgs - numArgsAfterSentinel - 1];
   if (!sentinelExpr) return;
   if (sentinelExpr->isValueDependent()) return;
-  if (isNullExpr(sentinelExpr)) return;
+  if (isSentinelNullExpr(sentinelExpr)) return;
 
   // Pick a reasonable string to insert.  Optimistically use 'nil' or
   // 'NULL' if those are actually defined in the context.  Only use
@@ -279,7 +279,7 @@ SourceRange Sema::getExprRange(Expr *E) const {
   return E ? E->getSourceRange() : SourceRange();
 }
 
-bool Sema::isNullExpr(const Expr *E) const {
+bool Sema::isSentinelNullExpr(const Expr *E) const {
   if (!E)
     return false;