aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
diff options
context:
space:
mode:
authorDaniel Grumberg <dgrumberg@apple.com>2023-03-30 14:51:45 +0100
committerDaniel Grumberg <dgrumberg@apple.com>2023-03-30 18:13:58 +0100
commit142c3d9d1414847fd154c300ff12505283027505 (patch)
tree36efb64924a140ff96f2a2c52fc08bff8bb4f269 /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
parentb6eadb6c1b509921ccbc30861c0e70b5df8b3253 (diff)
downloadllvm-142c3d9d1414847fd154c300ff12505283027505.zip
llvm-142c3d9d1414847fd154c300ff12505283027505.tar.gz
llvm-142c3d9d1414847fd154c300ff12505283027505.tar.bz2
[clang][ExtractAPI] Reland ExtractAPI for libclang improvements
This relands the changes that were originally introduced by: - https://reviews.llvm.org/D146656 - https://reviews.llvm.org/D147138 This also fixes the leak that led to these changes being reverted Differential Revision: https://reviews.llvm.org/D147234
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
-rw-r--r--clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
index 8a98f5c..7676c74 100644
--- a/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
+++ b/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
@@ -547,10 +547,6 @@ Array generateParentContexts(const RecordTy &Record, const APISet &API,
serializeParentContext(PC, Lang));
});
- // The last component would be the record itself so let's remove it.
- if (!ParentContexts.empty())
- ParentContexts.pop_back();
-
return ParentContexts;
}