[clang][extract-api] Add Objective-C Category support
authorZixu Wang <zixu_wang@apple.com>
Thu, 31 Mar 2022 00:21:33 +0000 (17:21 -0700)
committerZixu Wang <zixu_wang@apple.com>
Wed, 6 Apr 2022 19:00:12 +0000 (12:00 -0700)
commit178aad9b946e3c5abe9df162e5c482fb4acae99c
tree7791542c16161e68d1b9b27d7eb9251faabdaa7f
parent6b306233f78876a1d197ed6e1f05785505de7c63
[clang][extract-api] Add Objective-C Category support

Add (partial) support for Objective-C category records in ExtractAPI.
The current ExtractAPI collects everything for an Objective-C category,
but not fully serialized in the SymbolGraphSerializer. Categories
extending external interfaces are disgarded during serialization, and
categories extending known interfaces are merged (all members surfaced)
into the interfaces.

Differential Revision: https://reviews.llvm.org/D122774
clang/include/clang/ExtractAPI/API.h
clang/include/clang/ExtractAPI/DeclarationFragments.h
clang/include/clang/ExtractAPI/Serialization/SymbolGraphSerializer.h
clang/lib/ExtractAPI/API.cpp
clang/lib/ExtractAPI/DeclarationFragments.cpp
clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
clang/test/ExtractAPI/objc_category.m [new file with mode: 0644]