[cfe-commits] r148772 - in /cfe/trunk: include/clang/Sema/Sema.h lib/Sema/SemaExpr.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Mon Jan 23 19:13:57 PST 2012
Author: akirtzidis
Date: Mon Jan 23 21:13:57 2012
New Revision: 148772
URL: http://llvm.org/viewvc/llvm-project?rev=148772&view=rev
Log:
Rename Sema::isNullExpr() -> Sema::isSentinelNullExpr() which is more descriptive.
Modified:
cfe/trunk/include/clang/Sema/Sema.h
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/include/clang/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=148772&r1=148771&r2=148772&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Sema.h (original)
+++ cfe/trunk/include/clang/Sema/Sema.h Mon Jan 23 21:13:57 2012
@@ -1375,7 +1375,7 @@
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);
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=148772&r1=148771&r2=148772&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Mon Jan 23 21:13:57 2012
@@ -249,7 +249,7 @@
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 @@
return E ? E->getSourceRange() : SourceRange();
}
-bool Sema::isNullExpr(const Expr *E) const {
+bool Sema::isSentinelNullExpr(const Expr *E) const {
if (!E)
return false;
More information about the cfe-commits
mailing list