llvm-project/clang/test/Frontend/Inputs
Volodymyr Sapsai 1f70bddb83 Fix evaluation of `__has_include_next` during -frewrite-includes.
`__has_include_next` requires correct DirectoryLookup for being
evaluated correctly. We were using Preprocessor::GetCurDirLookup() but
we were calling it after the preprocessor finished its work. And in this
case CurDirLookup is always nullptr which makes `__has_include_next`
behave as `__has_include`.

Fix by storing and using CurDirLookup when preprocessor enters a file,
not when we rewrite the includes.

rdar://problem/36305026

Reviewers: bkramer

Reviewed By: bkramer

Subscribers: jkorous-apple, cfe-commits

Differential Revision: https://reviews.llvm.org/D45603

llvm-svn: 330041
2018-04-13 17:43:15 +00:00
..
NextIncludes Fix evaluation of `__has_include_next` during -frewrite-includes. 2018-04-13 17:43:15 +00:00
SystemHeaderPrefix Add test coverage for recent behavior change in GNU line marker pre-processing 2017-05-23 16:09:13 +00:00
TestFramework.framework/Headers
absolute-paths.h
empty.h PR26771: don't forget the " 2" (returning from #included file) linemarker after including an empty file with -frewrite-includes. 2017-04-29 00:54:03 +00:00
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