From 51db87766fcb6fc4958742d0be5e8849c327bd8f Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Wed, 7 May 2014 09:53:02 +0000 Subject: [PATCH] Use nullptr instead of 0 for const char * value. llvm-svn: 208178 --- clang/lib/AST/DeclPrinter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;