From: Stephen Kelly Date: Mon, 10 Dec 2018 21:04:04 +0000 (+0000) Subject: Fix nits X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba0387d0fabf415e15bd35f22b69f4090b0154fe;p=clang Fix nits git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348798 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTDumper.cpp b/lib/AST/ASTDumper.cpp index 5c12c2b366..60c04e4eb7 100644 --- a/lib/AST/ASTDumper.cpp +++ b/lib/AST/ASTDumper.cpp @@ -100,12 +100,12 @@ namespace { void dumpTemplateArgumentListInfo(const TemplateArgumentListInfo &TALI); void dumpTemplateArgumentLoc(const TemplateArgumentLoc &A, const Decl *From = nullptr, - const char *label = nullptr); + const char *Label = nullptr); void dumpTemplateArgumentList(const TemplateArgumentList &TAL); void dumpTemplateArgument(const TemplateArgument &A, SourceRange R = SourceRange(), const Decl *From = nullptr, - const char *label = nullptr); + const char *Label = nullptr); template void dumpTemplateDeclSpecialization(const SpecializationDecl *D, bool DumpExplicitInst, @@ -678,8 +678,8 @@ void ASTDumper::dumpTemplateArgumentListInfo( } void ASTDumper::dumpTemplateArgumentLoc(const TemplateArgumentLoc &A, - const Decl *From, const char *label) { - dumpTemplateArgument(A.getArgument(), A.getSourceRange(), From, label); + const Decl *From, const char *Label) { + dumpTemplateArgument(A.getArgument(), A.getSourceRange(), From, Label); } void ASTDumper::dumpTemplateArgumentList(const TemplateArgumentList &TAL) { @@ -688,15 +688,14 @@ void ASTDumper::dumpTemplateArgumentList(const TemplateArgumentList &TAL) { } void ASTDumper::dumpTemplateArgument(const TemplateArgument &A, SourceRange R, - const Decl *From, const char *label) { + const Decl *From, const char *Label) { dumpChild([=] { OS << "TemplateArgument"; if (R.isValid()) NodeDumper.dumpSourceRange(R); - if (From) { - dumpDeclRef(From, label); - } + if (From) + dumpDeclRef(From, Label); switch (A.getKind()) { case TemplateArgument::Null: