diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index a57532cb65e5..9b68cd26497e 100644 --- a/clang/lib/AST/DeclPrinter.cpp +++ b/clang/lib/AST/DeclPrinter.cpp @@ -282,21 +282,21 @@ void DeclPrinter::VisitDeclContext(DeclContext *DC, bool Indent) { Visit(*D); // FIXME: Need to be able to tell the DeclPrinter when - const char *Terminator = 0; + const char *Terminator = nullptr; if (isa(*D)) - Terminator = 0; + Terminator = nullptr; else if (isa(*D) && cast(*D)->isThisDeclarationADefinition()) - Terminator = 0; + Terminator = nullptr; else if (isa(*D) && cast(*D)->getBody()) - Terminator = 0; + Terminator = nullptr; else if (isa(*D) || isa(*D) || isa(*D) || isa(*D) || isa(*D) || isa(*D) || isa(*D)) - Terminator = 0; + Terminator = nullptr; else if (isa(*D)) { DeclContext::decl_iterator Next = D; ++Next;