We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d17ff9 commit 995e178Copy full SHA for 995e178
source/lib/AST/Serialize.cpp
@@ -1059,6 +1059,8 @@ build(
1059
getParent(id, D);
1060
RecordInfo P(id);
1061
P.Friends.emplace_back(I.id);
1062
+ bool isInAnonymous;
1063
+ getParentNamespaces(P.Namespace, ND, isInAnonymous);
1064
return {
1065
serialize(I),
1066
serializeParent(std::move(I)),
source/lib/Metadata/Record.cpp
@@ -56,6 +56,13 @@ merge(RecordInfo&& Other)
56
if(! Other.Friends.empty())
57
{
58
llvm::append_range(Friends, std::move(Other.Friends));
59
+ llvm::sort(Friends,
60
+ [](SymbolID const& id0, SymbolID const& id1)
61
+ {
62
+ return id0 < id1;
63
+ });
64
+ auto last = std::unique(Friends.begin(), Friends.end());
65
+ Friends.erase(last, Friends.end());
66
}
67
68
0 commit comments