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.
2 parents f467295 + f676b75 commit ea4646fCopy full SHA for ea4646f
lib/ClangImporter/ImportDecl.cpp
@@ -4525,7 +4525,13 @@ namespace {
4525
SmallVector<Decl *, 4> matchingTopLevelDecls;
4526
4527
// Get decls with a matching @objc attribute
4528
- module->lookupTopLevelDeclsByObjCName(matchingTopLevelDecls, name);
+ module->getTopLevelDeclsWhereAttributesMatch(
4529
+ matchingTopLevelDecls, [&name](const DeclAttributes attrs) -> bool {
4530
+ if (auto objcAttr = attrs.getAttribute<ObjCAttr>())
4531
+ if (auto objcName = objcAttr->getName())
4532
+ return objcName->getSimpleName() == name;
4533
+ return false;
4534
+ });
4535
4536
// Filter by decl kind
4537
for (auto result : matchingTopLevelDecls) {
0 commit comments