[PATCH] D45603: Fix evaluation of `__has_include_next` during -frewrite-includes.

2018-04-13 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. Thanks for the prompt review. Repository: rC Clang https://reviews.llvm.org/D45603 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D45603: Fix evaluation of `__has_include_next` during -frewrite-includes.

2018-04-13 Thread Volodymyr Sapsai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC330041: Fix evaluation of `__has_include_next` during -frewrite-includes. (authored by vsapsai, committed by ). Changed prior to commit: https://reviews.llvm.org/D45603?vs=142299=142438#toc

[PATCH] D45603: Fix evaluation of `__has_include_next` during -frewrite-includes.

2018-04-13 Thread Benjamin Kramer via Phabricator via cfe-commits
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. lg https://reviews.llvm.org/D45603 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D45603: Fix evaluation of `__has_include_next` during -frewrite-includes.

2018-04-12 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. To simplify reviewing additions to the test, here is the corresponding output # 23 "/Users/vsapsai/Projects/llvm/llvm-project/clang/test/Frontend/rewrite-includes.c" 2 #if 0 /* expanded by -frewrite-includes */ #include "rewrite-includes9.h" #endif /* expanded

[PATCH] D45603: Fix evaluation of `__has_include_next` during -frewrite-includes.

2018-04-12 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai created this revision. vsapsai added a reviewer: bkramer. Herald added a subscriber: jkorous-apple. `__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