We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 873e279 commit 86e50afCopy full SHA for 86e50af
clang/lib/AST/DeclPrinter.cpp
@@ -532,7 +532,7 @@ void DeclPrinter::VisitEnumDecl(EnumDecl *D) {
532
533
Out << ' ' << *D;
534
535
- if (D->isFixed() && D->getASTContext().getLangOpts().CPlusPlus11)
+ if (D->isFixed())
536
Out << " : " << D->getIntegerType().stream(Policy);
537
538
if (D->isCompleteDefinition()) {
clang/test/AST/ast-print-enum-decl.c
@@ -103,3 +103,8 @@ struct DeclGroupInMemberList {
103
enum T2 { T20 } *p1, *p2;
104
// PRINT-NEXT: };
105
};
106
+
107
+enum fixedEnum : int { fixedEnumerator };
108
+// PRINT-LABEL: enum fixedEnum : int {
109
+// PRINT-NEXT: fixedEnumerator
110
+// PRINT-NEXT: };
0 commit comments