aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-07-20 22:44:23 -0700
committerFangrui Song <i@maskray.me>2023-07-20 22:44:23 -0700
commit7baf5d3841ee16df66e218b1b892d3d2a3f0680b (patch)
tree70f3c6953e2f33cefa1c7a1faf11fbb1ac7f694a /clang/lib/Lex/ModuleMap.cpp
parentdda8ac8d3a6a7de7c1cc3f031bb5296bae74d754 (diff)
downloadllvm-7baf5d3841ee16df66e218b1b892d3d2a3f0680b.zip
llvm-7baf5d3841ee16df66e218b1b892d3d2a3f0680b.tar.gz
llvm-7baf5d3841ee16df66e218b1b892d3d2a3f0680b.tar.bz2
[modularize] Stabilize iteration order when processing module maps
Many diagnostics (e.g., ProblemsDuplicate.modularize, ProblemsDisplayLists.modularize) are dependent on the iteration order of StringMap, which is not guaranteed to be deterministic (https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h). clang::ModuleMap::Modules is a StringMap. For now, sort by name in modularize.
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions