[clang][ExtractAPI] Add queried symbol to parent contexts in libclang
authorDaniel Grumberg <dgrumberg@apple.com>
Wed, 29 Mar 2023 11:04:30 +0000 (12:04 +0100)
committerDaniel Grumberg <dgrumberg@apple.com>
Wed, 29 Mar 2023 15:32:26 +0000 (16:32 +0100)
commit1cfe1e732ad8e8148f6fa8fc0f0c86f4b965d567
tree9e2028fdd5c543af84c501121c4019403870549e
parent90025187f014c4699b9869428a06e683c1bac232
[clang][ExtractAPI] Add queried symbol to parent contexts in libclang

Ensure that the current symbol is added to the parent contexts in the
output of libclang function for generating symbol graphs for single symbols.

Differential Revision: https://reviews.llvm.org/D147138
clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
clang/test/Index/extract-api-cursor.m
clang/test/Index/extract-api-usr.m