diff options
author | Daniel Grumberg <dgrumberg@apple.com> | 2022-10-21 15:34:57 +0100 |
---|---|---|
committer | Daniel Grumberg <dgrumberg@apple.com> | 2022-11-07 13:12:34 +0000 |
commit | 671709f0e7d49826fd0908be2c9aed07debf5bc9 (patch) | |
tree | 539b0dafd8c1bb5befc17aeeb2c00dc85a063429 /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | |
parent | 8f68952183822b63b11f61e5a3c3ade8af33a63a (diff) | |
download | llvm-671709f0e7d49826fd0908be2c9aed07debf5bc9.zip llvm-671709f0e7d49826fd0908be2c9aed07debf5bc9.tar.gz llvm-671709f0e7d49826fd0908be2c9aed07debf5bc9.tar.bz2 |
[clang][ExtractAPI] Add targetFallback to relationships in symbol graph
Adds a 'targetFallback' field to relationships in symbol graph that
contains the plain name of the relationship target. This is useful for
clients when the relationship target symbol is not available.
Differential Revision: https://reviews.llvm.org/D136455
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
-rw-r--r-- | clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp index 988ecd2..641f1ae 100644 --- a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp +++ b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp @@ -559,6 +559,7 @@ void SymbolGraphSerializer::serializeRelationship(RelationshipKind Kind, Object Relationship; Relationship["source"] = Source.USR; Relationship["target"] = Target.USR; + Relationship["targetFallback"] = Target.Name; Relationship["kind"] = getRelationshipString(Kind); Relationships.emplace_back(std::move(Relationship)); |