Skip to content

Commit

Permalink
[InstallAPI] Condense std::pair unwrapping in CategoryRecord NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
cyndyishida committed Apr 2, 2024
1 parent f619868 commit 207f153
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/lib/InstallAPI/Visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ bool InstallAPIVisitor::VisitObjCCategoryDecl(const ObjCCategoryDecl *D) {
const ObjCInterfaceDecl *InterfaceD = D->getClassInterface();
const StringRef InterfaceName = InterfaceD->getName();

std::pair<ObjCCategoryRecord *, FrontendAttrs *> Category =
Ctx.Slice->addObjCCategory(InterfaceName, CategoryName, Avail, D,
*Access);
recordObjCInstanceVariables(D->getASTContext(), Category.first, InterfaceName,
ObjCCategoryRecord *CategoryRecord =
Ctx.Slice->addObjCCategory(InterfaceName, CategoryName, Avail, D, *Access)
.first;
recordObjCInstanceVariables(D->getASTContext(), CategoryRecord, InterfaceName,
D->ivars());
return true;
}
Expand Down

0 comments on commit 207f153

Please sign in to comment.