forked from OSchip/llvm-project
[clangd] Minor refactor of CanonicalIncludes::addSystemHeadersMapping.
Before commitb3a991df3c
SystemHeaderMap used to be a vector. Commitb3a991df3c
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:
parent
08407255b2
commit
afbe3aed49