Files
clang-p2996/clang-tools-extra/test/modularize/ProblemsDisplayLists.modularize
Fangrui Song 7baf5d3841 [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.
2023-07-20 22:44:23 -07:00

17 lines
569 B
Plaintext

# RUN: not modularize -display-file-lists %S/Inputs/CompileError/module.modulemap 2>&1 | FileCheck %s
# CHECK: {{.*}}{{[/\\]}}Inputs{{[/\\]}}CompileError{{[/\\]}}HasError.h:1:9: error: unknown type name 'WithoutDep'
# CHECK: These are the files with possible errors:
# CHECK: Inputs/CompileError/HasError.h
# CHECK: These are the files with no detected errors:
# CHECK: Inputs/CompileError/Level1A.h
# CHECK: These are the combined files, with problem files preceded by #:
# CHECK: Inputs/CompileError/HasError.h
# CHECK-NEXT: Inputs/CompileError/Level1A.h