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 cccc281 commit 0789ce9Copy full SHA for 0789ce9
lib/AST/ASTPrinter.cpp
@@ -3212,7 +3212,14 @@ static bool usesFeatureTupleConformances(Decl *decl) {
3212
}
3213
3214
static bool usesFeatureSymbolLinkageMarkers(Decl *decl) {
3215
- return false;
+ auto &attrs = decl->getAttrs();
3216
+ return std::any_of(attrs.begin(), attrs.end(), [](auto *attr) {
3217
+ if (isa<UsedAttr>(attr))
3218
+ return true;
3219
+ if (isa<SectionAttr>(attr))
3220
3221
+ return false;
3222
+ });
3223
3224
3225
static bool usesFeatureLayoutPrespecialization(Decl *decl) {
0 commit comments