Skip to content
Commit afbe3aed authored by Paul Pluzhnikov's avatar Paul Pluzhnikov Committed by Ilya Biryukov
Browse files

[clangd] Minor refactor of CanonicalIncludes::addSystemHeadersMapping.

Before commit b3a991df SystemHeaderMap used to be a vector.

Commit b3a991df 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
parent 08407255
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment