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 cff9d10 + 1fe0aa6 commit e49fccfCopy full SHA for e49fccf
lib/ClangImporter/ImportDecl.cpp
@@ -4533,7 +4533,13 @@ namespace {
4533
SmallVector<Decl *, 4> matchingTopLevelDecls;
4534
4535
// Get decls with a matching @objc attribute
4536
- module->lookupTopLevelDeclsByObjCName(matchingTopLevelDecls, name);
+ module->getTopLevelDeclsWhereAttributesMatch(
4537
+ matchingTopLevelDecls, [&name](const DeclAttributes attrs) -> bool {
4538
+ if (auto objcAttr = attrs.getAttribute<ObjCAttr>())
4539
+ if (auto objcName = objcAttr->getName())
4540
+ return objcName->getSimpleName() == name;
4541
+ return false;
4542
+ });
4543
4544
// Filter by decl kind
4545
for (auto result : matchingTopLevelDecls) {
0 commit comments