With modules we start accessing headers for the first time while reading the module map, which often has very different paths from the include scanning logic. Using the name by which the file was accessed gets us one step closer to the right solution, which is using a FileName abstraction that decouples the name by which a file was accessed from the FileEntry. llvm-svn: 215541
10 lines
364 B
C++
10 lines
364 B
C++
// RUN: cd %S
|
|
// RUN: %clang_cc1 -I. -fmodule-maps -fmodule-name=A -fmodule-map-file=%S/Inputs/filename/module.map %s -E | FileCheck %s
|
|
// REQUIRES: shell
|
|
|
|
#include "Inputs/filename/a.h"
|
|
|
|
// Make sure that headers that are referenced by module maps have __FILE__
|
|
// reflect the include path they were found with.
|
|
// CHECK: const char *p = "./Inputs/filename/a.h"
|