forked from OSchip/llvm-project
Rename Sema::isNullExpr() -> Sema::isSentinelNullExpr() which is more descriptive.
llvm-svn: 148772
This commit is contained in:
parent
0d8e67aebd
commit
50cfa12752
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue