mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 02:46:06 +00:00

Now it reports the name of the indirectly-used module which is missing. Reviewed By: ChuanqiXu Differential Revision: https://reviews.llvm.org/D142925
11 lines
732 B
C++
11 lines
732 B
C++
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -fmodules-decluse -I %S/Inputs/string_names %s -fmodule-name="my/module-a" -verify
|
|
|
|
// Check that we can preprocess with string module names.
|
|
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/string_names %s -fmodule-name="my/module-a" -E -frewrite-imports -o %t/test.ii
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-decluse -I %S/Inputs/string_names %t/test.ii -fmodule-name="my/module-a"
|
|
|
|
#include "a.h"
|
|
#include "b.h" // expected-error {{module my/module-a does not directly depend on a module exporting 'b.h', which is part of indirectly-used module my/module-b}}
|
|
#include "c.h"
|