[clang] 9ed1aa3 - Fixing up an edit missed in #84014; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 19 09:49:05 PDT 2024


Author: Aaron Ballman
Date: 2024-03-19T12:48:54-04:00
New Revision: 9ed1aa36be654f6687c4f9000c973b722217881c

URL: https://github.com/llvm/llvm-project/commit/9ed1aa36be654f6687c4f9000c973b722217881c
DIFF: https://github.com/llvm/llvm-project/commit/9ed1aa36be654f6687c4f9000c973b722217881c.diff

LOG: Fixing up an edit missed in #84014; NFC

Added: 
    

Modified: 
    clang/lib/AST/DeclPrinter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp
index ad45da6b8f5659..edbcdfe4d55bc9 100644
--- a/clang/lib/AST/DeclPrinter.cpp
+++ b/clang/lib/AST/DeclPrinter.cpp
@@ -1037,12 +1037,9 @@ void DeclPrinter::VisitVarDecl(VarDecl *D) {
              : D->getName();
 
   if (!Policy.SuppressTagKeyword && Policy.SuppressScope &&
-      !Policy.SuppressUnwrittenScope) {
+      !Policy.SuppressUnwrittenScope)
     MaybePrintTagKeywordIfSupressingScopes(Policy, T, Out);
-    printDeclType(T, Name);
-  } else {
-    printDeclType(T, Name);
-  }
+  printDeclType(T, Name);
 
   // Print the attributes that should be placed right before the end of the
   // decl.


        


More information about the cfe-commits mailing list