llvm-project/clang/test/Frontend/Inputs
Manoj Gupta 41d9d5092a Reland r371785: Add -Wpoison-system-directories warning
When using clang as a cross-compiler, we should not use system
headers to do the compilation.
This CL adds support of a new warning flag -Wpoison-system-directories which
emits warnings if --sysroot is set and headers from common host system location
are used.
By default the warning is disabled.

The intention of the warning is to catch bad includes which are usually
generated by third party build system not targeting cross-compilation.
Such cases happen in Chrome OS when someone imports a new package or upgrade
one to a newer version from upstream.

This is reland of r371785 with a fix to test file.

Patch by: denik (Denis Nikitin)

llvm-svn: 371878
2019-09-13 18:00:51 +00:00
..
NextIncludes Fix evaluation of `__has_include_next` during -frewrite-includes. 2018-04-13 17:43:15 +00:00
SystemHeaderPrefix Track skipped files in dependency scanning. 2018-05-01 23:59:33 +00:00
TestFramework.framework/Headers
resource_dir_with_cfi_blacklist/share Move test input file into same directory as test. NFC 2018-05-08 00:29:21 +00:00
sysroot_x86_64_cross_linux_tree Reland r371785: Add -Wpoison-system-directories warning 2019-09-13 18:00:51 +00:00
absolute-paths.h
empty.h
line-directive.h Add test coverage for recent behavior change in GNU line marker pre-processing 2017-05-23 16:09:13 +00:00
optimization-remark-with-hotness-sample.proftext Fix opt-remark with hotness testcase for sample-based PGO 2017-12-01 19:59:42 +00:00
optimization-remark-with-hotness.proftext [PGO] Detect more structural changes with the stable hash 2017-11-14 23:56:53 +00:00
profile-sample-use-loc-tracking.prof
rewrite-includes-bom.h
rewrite-includes-messages.h
rewrite-includes1.h
rewrite-includes2.h
rewrite-includes3.h
rewrite-includes4.h
rewrite-includes5.h
rewrite-includes6.h
rewrite-includes7.h
rewrite-includes8.h
rewrite-includes9.h Fix evaluation of `__has_include_next` during -frewrite-includes. 2018-04-13 17:43:15 +00:00
test.h
test2.h
test3.h