llvm-project/clang/test/VFS/Inputs/Nonmodular/nonmodular-headers.yaml
Manman Ren a67e4d3254 Don't diagnose non-modular includes when we are not compiling a module.
This is triggered when we are compiling an implementation of a module,
it has relative includes to a VFS-mapped module with umbrella headers.
Currently we will find the real path to headers under the umbrella directory,
but the umbrella directories are using virtual path.

rdar://27951255

Thanks Ben and Richard for reviewing the patch!
Differential Revision: http://reviews.llvm.org/D23858

llvm-svn: 279838
2016-08-26 17:16:46 +00:00

35 lines
768 B
YAML

{
'version': 0,
'case-sensitive': 'false',
'ignore-non-existent-contents': 'true',
'roots': [
{
'type': 'directory',
'name': "VDIR/Nonmodular.framework/Headers",
'contents': [
{
'type': 'file',
'name': "umbrella.h",
'external-contents': "IN_DIR/Inputs/Nonmodular/umbrella.h"
},
{
'type': 'file',
'name': "A.h",
'external-contents': "IN_DIR/Inputs/Nonmodular/A.h"
}
]
},
{
'type': 'directory',
'name': "VDIR/Nonmodular.framework/Modules",
'contents': [
{
'type': 'file',
'name': "module.modulemap",
'external-contents': "OUT_DIR/module.modulemap"
}
]
}
]
}