Rename Sema::isNullExpr() -> Sema::isSentinelNullExpr() which is more descriptive.

llvm-svn: 148772
This commit is contained in:
Argyrios Kyrtzidis 2012-01-24 03:13:57 +00:00
parent 0d8e67aebd
commit 50cfa12752
2 changed files with 3 additions and 3 deletions

View 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);

View 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;