Use nullptr instead of 0 for const char * value.

llvm-svn: 208178
This commit is contained in:
Yaron Keren 2014-05-07 09:53:02 +00:00
parent da925c0d7c
commit 51db87766f
1 changed files with 5 additions and 5 deletions

View File

@ -282,21 +282,21 @@ void DeclPrinter::VisitDeclContext(DeclContext *DC, bool Indent) {
Visit(*D); Visit(*D);
// FIXME: Need to be able to tell the DeclPrinter when // FIXME: Need to be able to tell the DeclPrinter when
const char *Terminator = 0; const char *Terminator = nullptr;
if (isa<OMPThreadPrivateDecl>(*D)) if (isa<OMPThreadPrivateDecl>(*D))
Terminator = 0; Terminator = nullptr;
else if (isa<FunctionDecl>(*D) && else if (isa<FunctionDecl>(*D) &&
cast<FunctionDecl>(*D)->isThisDeclarationADefinition()) cast<FunctionDecl>(*D)->isThisDeclarationADefinition())
Terminator = 0; Terminator = nullptr;
else if (isa<ObjCMethodDecl>(*D) && cast<ObjCMethodDecl>(*D)->getBody()) else if (isa<ObjCMethodDecl>(*D) && cast<ObjCMethodDecl>(*D)->getBody())
Terminator = 0; Terminator = nullptr;
else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) || else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) ||
isa<ObjCImplementationDecl>(*D) || isa<ObjCImplementationDecl>(*D) ||
isa<ObjCInterfaceDecl>(*D) || isa<ObjCInterfaceDecl>(*D) ||
isa<ObjCProtocolDecl>(*D) || isa<ObjCProtocolDecl>(*D) ||
isa<ObjCCategoryImplDecl>(*D) || isa<ObjCCategoryImplDecl>(*D) ||
isa<ObjCCategoryDecl>(*D)) isa<ObjCCategoryDecl>(*D))
Terminator = 0; Terminator = nullptr;
else if (isa<EnumConstantDecl>(*D)) { else if (isa<EnumConstantDecl>(*D)) {
DeclContext::decl_iterator Next = D; DeclContext::decl_iterator Next = D;
++Next; ++Next;