diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-01-24 03:13:57 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-01-24 03:13:57 +0000 |
commit | 7514f31c8fa3fbb3428d0dca98c32145fb0faaa5 (patch) | |
tree | 9078d38be6bad8a7e86c21f14bfd49af47630ad6 | |
parent | 0259042fd77da3532b87327ffe9f7e330222d72c (diff) |
Rename Sema::isNullExpr() -> Sema::isSentinelNullExpr() which is more descriptive.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148772 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Sema/Sema.h | 2 | ||||
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 309d191aa9..ecff2ec58d 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -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); diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 8d263b3b66..2d32ea9a06 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -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; |