mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Split DeclAttrOptions into two types
We’re running out of bits in DeclAttrOptions, so split it in two: DeclAttrRequirements contains all the `On*` options that describe the declarations allowed to have the attribute, while the other options are now DeclAttrBehaviors. This commit also sorts the entries in DeclAttr.def by serialization code and improves the formatting of the file.
This commit is contained in:
@@ -141,7 +141,7 @@ SymbolGraph::getSubHeadingDeclarationFragmentsPrintOptions() const {
|
||||
Options.PrintOverrideKeyword = false;
|
||||
Options.PrintGenericRequirements = false;
|
||||
|
||||
#define DECL_ATTR(SPELLING, CLASS, OPTIONS, CODE) \
|
||||
#define DECL_ATTR(SPELLING, CLASS, ...) \
|
||||
Options.ExcludeAttrList.push_back(DeclAttrKind::CLASS);
|
||||
#define TYPE_ATTR(X, C) Options.ExcludeAttrList.push_back(TypeAttrKind::C);
|
||||
#include "swift/AST/DeclAttr.def"
|
||||
|
||||
Reference in New Issue
Block a user