mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Printer] In PrintOptions, add a general 'exclude attributes' list for the attribute kinds we don't want to print.
Swift SVN r17349
This commit is contained in:
@@ -67,7 +67,9 @@ void DeclAttributes::print(ASTPrinter &Printer,
|
||||
for (auto DA : *this) {
|
||||
if (!Options.PrintImplicitAttrs && DA->isImplicit())
|
||||
continue;
|
||||
if (!Options.PrintAttrExported && isa<ExportedAttr>(DA))
|
||||
if (std::find(Options.ExcludeAttrList.begin(),
|
||||
Options.ExcludeAttrList.end(),
|
||||
DA->getKind()) != Options.ExcludeAttrList.end())
|
||||
continue;
|
||||
|
||||
DA->print(Printer);
|
||||
|
||||
Reference in New Issue
Block a user