mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-17 22:20:54 +00:00
Uniquify {func,type}.derived
This commit is contained in:
parent
478e542e8a
commit
f9f8429c74
@ -2264,9 +2264,13 @@ optional<std::vector<std::unique_ptr<IndexFile>>> ParseWithTu(
|
|||||||
for (std::unique_ptr<IndexFile>& entry : result) {
|
for (std::unique_ptr<IndexFile>& entry : result) {
|
||||||
entry->import_file = file;
|
entry->import_file = file;
|
||||||
entry->args = args;
|
entry->args = args;
|
||||||
for (IndexFunc& func : entry->funcs)
|
for (IndexFunc& func : entry->funcs) {
|
||||||
|
// e.g. declaration + out-of-line definition
|
||||||
|
Uniquify(func.derived);
|
||||||
Uniquify(func.uses);
|
Uniquify(func.uses);
|
||||||
|
}
|
||||||
for (IndexType& type : entry->types) {
|
for (IndexType& type : entry->types) {
|
||||||
|
Uniquify(type.derived);
|
||||||
Uniquify(type.uses);
|
Uniquify(type.uses);
|
||||||
// e.g. declaration + out-of-line definition
|
// e.g. declaration + out-of-line definition
|
||||||
Uniquify(type.def.funcs);
|
Uniquify(type.def.funcs);
|
||||||
|
Loading…
Reference in New Issue
Block a user