mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-13 17:37:00 +00:00

This patch deprecates `module.map` in favor of `module.modulemap`, which has been the preferred form since 2014. The eventual goal is to remove support for `module.map` to reduce the number of stats Clang needs to do while searching for module map files. This patch touches a lot of files, but the majority of them are just renaming tests or references to the file in comments or documentation. The relevant files are: * lib/Lex/HeaderSearch.cpp * include/clang/Basic/DiagnosticGroups.td * include/clang/Basic/DiagnosticLexKinds.td
19 lines
715 B
Objective-C
19 lines
715 B
Objective-C
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules \
|
|
// RUN: -fimplicit-module-maps -F %S/Inputs/GNUAsm %s \
|
|
// RUN: -I %S/Inputs/GNUAsm \
|
|
// RUN: -fno-gnu-inline-asm -DNO_ASM_INLINE -verify
|
|
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules \
|
|
// RUN: -fimplicit-module-maps -F %S/Inputs/GNUAsm %s \
|
|
// RUN: -DASM_INLINE -verify
|
|
|
|
#ifdef NO_ASM_INLINE
|
|
// expected-error@NeedsGNUInlineAsm.framework/Modules/module.modulemap:4 {{module 'NeedsGNUInlineAsm.Asm' requires feature 'gnuinlineasm'}}
|
|
@import NeedsGNUInlineAsm.Asm; // expected-note {{module imported here}}
|
|
#endif
|
|
|
|
#ifdef ASM_INLINE
|
|
@import NeedsGNUInlineAsm.Asm; // expected-no-diagnostics
|
|
#endif
|