mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-05 15:26:07 +00:00

Includes might always pull in arbitrary header or data files outside of modules. Among others, this includes builtin includes, which do not have a module (story) yet. Also cleanup implementation of ModuleMap::findModuleForHeader() to be non-recursive. llvm-svn: 197034
9 lines
318 B
C++
9 lines
318 B
C++
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodule-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=XG -I %S/Inputs/declare-use %s -verify
|
|
|
|
#include "g.h"
|
|
#include "e.h"
|
|
#include "f.h" // expected-error {{module XG does not depend on a module exporting 'f.h'}}
|
|
#include "i.h"
|
|
const int g2 = g1 + e + f + aux_i;
|