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.
17 lines
569 B
Plaintext
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
|