]> granicus.if.org Git - clang/commitdiff
[ASTDump] NFC: Remove non-needed braces
authorStephen Kelly <steveire@gmail.com>
Fri, 18 Jan 2019 22:14:59 +0000 (22:14 +0000)
committerStephen Kelly <steveire@gmail.com>
Fri, 18 Jan 2019 22:14:59 +0000 (22:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351603 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTDumper.cpp

index d13651931f20f572dd6ca8a65237658efb1e1ab3..678a6b5fc851b2eb16f655d54f14b007246cd53e 100644 (file)
@@ -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());