summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-24 03:13:57 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-24 03:13:57 +0000
commit50cfa12752a2e746668b8e27e465a743fabfc408 (patch)
tree9bcb46e51188d2ad1c83f8262189aefdd2302b98 /clang/lib/Sema
parent0d8e67aebdf1032f41ea8724e7cb77a19483971b (diff)
downloadbcm5719-llvm-50cfa12752a2e746668b8e27e465a743fabfc408.tar.gz
bcm5719-llvm-50cfa12752a2e746668b8e27e465a743fabfc408.zip
Rename Sema::isNullExpr() -> Sema::isSentinelNullExpr() which is more descriptive.
llvm-svn: 148772
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 8d263b3b662..2d32ea9a066 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud