diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2017-01-20 03:33:42 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2017-01-20 03:33:42 +0000 |
| commit | ccca669ccd081071d5add8263c681125d76807b0 (patch) | |
| tree | 898d6b16ad81bbc939d684febda4e47e159c1bc1 /clang/lib | |
| parent | 1af1f071ea36208afd806ecb0205525fa5bd8225 (diff) | |
| download | bcm5719-llvm-ccca669ccd081071d5add8263c681125d76807b0.tar.gz bcm5719-llvm-ccca669ccd081071d5add8263c681125d76807b0.zip | |
[AST Printer] Print attributes on enum constants
The AST printer was dropping attributes on enumerators (enum
constants). Now it's not.
llvm-svn: 292571
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/DeclPrinter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index b8ebe1c568c..15b9a6de0bd 100644 --- a/clang/lib/AST/DeclPrinter.cpp +++ b/clang/lib/AST/DeclPrinter.cpp @@ -464,6 +464,7 @@ void DeclPrinter::VisitRecordDecl(RecordDecl *D) { void DeclPrinter::VisitEnumConstantDecl(EnumConstantDecl *D) { Out << *D; + prettyPrintAttributes(D); if (Expr *Init = D->getInitExpr()) { Out << " = "; Init->printPretty(Out, nullptr, Policy, Indentation); |

