[clang][extract-api] Emit "functionSignature" in SGF for ObjC methods.
commit236b6a0eb41a163510e65664e2160f599287326b
authorDaniel Grumberg <dgrumberg@apple.com>
Thu, 7 Apr 2022 12:50:28 +0000 (7 13:50 +0100)
committerDaniel Grumberg <dgrumberg@apple.com>
Mon, 11 Apr 2022 18:05:24 +0000 (11 19:05 +0100)
tree287e71d587ccc098c9d5cf5a2485920136ae7b08
parent2d0475e37169bee3d969c4e4b445e86c08539769
[clang][extract-api] Emit "functionSignature" in SGF for ObjC methods.

- Split GlobalRecord into two distinct types to be able to introduce
has_function_signature type trait.
- Add has_function_signature type trait.
- Serialize function signatures as part of serializeAPIRecord for
records that are known to have a function signature.

Differential Revision: https://reviews.llvm.org/D123304
clang/include/clang/ExtractAPI/API.h
clang/include/clang/ExtractAPI/Serialization/SymbolGraphSerializer.h
clang/lib/ExtractAPI/API.cpp
clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
clang/test/ExtractAPI/objc_category.m
clang/test/ExtractAPI/objc_interface.m