[clangd] Minor refactor of CanonicalIncludes::addSystemHeadersMapping.

Before commit b3a991df3c SystemHeaderMap used to be a vector.

Commit b3a991df3c changed it into a map, but neglected to remove
duplicate keys (e.g. "bits/typesizes.h", "include/stdint.h", etc.).

To prevent confusion, remove all duplicates, build HeaderMapping
one pair at a time and assert() that no duplicates are found.

Change by Paul Pluzhnikov (ppluzhnikov)!

Reviewed By: ilya-biryukov

Differential Revision: https://reviews.llvm.org/D125742
This commit is contained in:
Paul Pluzhnikov 2022-06-09 12:11:25 +02:00 committed by Ilya Biryukov
parent 08407255b2
commit afbe3aed49
1 changed files with 661 additions and 655 deletions

File diff suppressed because it is too large Load Diff