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 0a65a39 commit 65a0dc1Copy full SHA for 65a0dc1
lib/AST/ASTPrinter.cpp
@@ -990,6 +990,17 @@ void PrintAST::printAttributes(const Decl *D) {
990
}
991
992
993
+ // SPI groups
994
+ if (Options.PrintSPIs) {
995
+ interleave(D->getSPIGroups(),
996
+ [&](Identifier spiName) {
997
+ Printer.printAttrName("_spi", true);
998
+ Printer << "(" << spiName << ") ";
999
+ },
1000
+ [&] { Printer << ""; });
1001
+ Options.ExcludeAttrList.push_back(DAK_SPIAccessControl);
1002
+ }
1003
+
1004
// Don't print any contextual decl modifiers.
1005
// We will handle 'mutating' and 'nonmutating' separately.
1006
if (isa<AccessorDecl>(D)) {
0 commit comments