From: Stephen Kelly Date: Fri, 18 Jan 2019 22:14:59 +0000 (+0000) Subject: [ASTDump] NFC: Remove non-needed braces X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c50407abff659bb5978893bbe54452b2af33388;p=clang [ASTDump] NFC: Remove non-needed braces git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351603 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTDumper.cpp b/lib/AST/ASTDumper.cpp index d13651931f..678a6b5fc8 100644 --- a/lib/AST/ASTDumper.cpp +++ b/lib/AST/ASTDumper.cpp @@ -1242,12 +1242,11 @@ void ASTDumper::VisitObjCMethodDecl(const ObjCMethodDecl *D) { if (D->isVariadic()) OS << " variadic"; - if (D->isThisDeclarationADefinition()) { + if (D->isThisDeclarationADefinition()) dumpDeclContext(D); - } else { + else for (const ParmVarDecl *Parameter : D->parameters()) dumpDecl(Parameter); - } if (D->hasBody()) dumpStmt(D->getBody());