Skip to content

Commit 8ff6431

Browse files
committed
[Macros] Print @declaration attribute, although it's going away
1 parent cf4b098 commit 8ff6431

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/AST/Attr.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,15 @@ bool DeclAttribute::printImpl(ASTPrinter &Printer, const PrintOptions &Options,
13091309
break;
13101310
}
13111311

1312+
case DAK_Declaration: {
1313+
Printer.printAttrName("@declaration");
1314+
Printer << "(";
1315+
auto Attr = cast<DeclarationAttr>(this);
1316+
Printer << getMacroRoleString(Attr->getMacroRole());
1317+
Printer << ")";
1318+
break;
1319+
}
1320+
13121321
case DAK_Attached: {
13131322
Printer.printAttrName("@attached");
13141323
Printer << "(";

0 commit comments

Comments
 (0)