diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-06-09 02:04:02 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-06-09 02:04:02 +0000 |
| commit | 4b56692e3032a41e3a172905ff9407649cba004e (patch) | |
| tree | 3af71753bc3cdddd90e73afbc6ef8fc9f78d7b15 /clang/lib/Sema/DeclSpec.cpp | |
| parent | f61be9c971d20d1f30f5444e525990b78a71d65e (diff) | |
| download | bcm5719-llvm-4b56692e3032a41e3a172905ff9407649cba004e.tar.gz bcm5719-llvm-4b56692e3032a41e3a172905ff9407649cba004e.zip | |
[C++11] Use 'nullptr'.
llvm-svn: 210448
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
| -rw-r--r-- | clang/lib/Sema/DeclSpec.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp index 69415ce34df..d7372b7a276 100644 --- a/clang/lib/Sema/DeclSpec.cpp +++ b/clang/lib/Sema/DeclSpec.cpp @@ -178,7 +178,7 @@ DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, I.Kind = Function; I.Loc = LocalRangeBegin; I.EndLoc = LocalRangeEnd; - I.Fun.AttrList = 0; + I.Fun.AttrList = nullptr; I.Fun.hasPrototype = hasProto; I.Fun.isVariadic = EllipsisLoc.isValid(); I.Fun.isAmbiguous = isAmbiguous; @@ -188,7 +188,7 @@ DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, I.Fun.DeleteParams = false; I.Fun.TypeQuals = TypeQuals; I.Fun.NumParams = NumParams; - I.Fun.Params = 0; + I.Fun.Params = nullptr; I.Fun.RefQualifierIsLValueRef = RefQualifierIsLvalueRef; I.Fun.RefQualifierLoc = RefQualifierLoc.getRawEncoding(); I.Fun.ConstQualifierLoc = ConstQualifierLoc.getRawEncoding(); @@ -197,8 +197,8 @@ DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, I.Fun.ExceptionSpecType = ESpecType; I.Fun.ExceptionSpecLoc = ESpecLoc.getRawEncoding(); I.Fun.NumExceptions = 0; - I.Fun.Exceptions = 0; - I.Fun.NoexceptExpr = 0; + I.Fun.Exceptions = nullptr; + I.Fun.NoexceptExpr = nullptr; I.Fun.HasTrailingReturnType = TrailingReturnType.isUsable() || TrailingReturnType.isInvalid(); I.Fun.TrailingReturnType = TrailingReturnType.get(); @@ -657,7 +657,7 @@ bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc, DeclRep = Rep; TSTLoc = TagKwLoc; TSTNameLoc = TagNameLoc; - TypeSpecOwned = Owned && Rep != 0; + TypeSpecOwned = Owned && Rep != nullptr; return false; } @@ -1169,7 +1169,7 @@ void DeclSpec::Finish(DiagnosticsEngine &D, Preprocessor &PP, const PrintingPoli bool DeclSpec::isMissingDeclaratorOk() { TST tst = getTypeSpecType(); - return isDeclRep(tst) && getRepAsDecl() != 0 && + return isDeclRep(tst) && getRepAsDecl() != nullptr && StorageClassSpec != DeclSpec::SCS_typedef; } |

