diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2024-03-19 12:44:20 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2024-03-19 12:48:54 -0400 |
commit | 9ed1aa36be654f6687c4f9000c973b722217881c (patch) | |
tree | 006ea1379594df109631897c8347e8f8981b44b5 | |
parent | 09eb9f1136c8572c4c3f2ec46be50899c32fc881 (diff) | |
download | llvm-9ed1aa36be654f6687c4f9000c973b722217881c.zip llvm-9ed1aa36be654f6687c4f9000c973b722217881c.tar.gz llvm-9ed1aa36be654f6687c4f9000c973b722217881c.tar.bz2 |
Fixing up an edit missed in #84014; NFC
-rw-r--r-- | clang/lib/AST/DeclPrinter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index ad45da6..edbcdfe 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. |