Stop wrapping __has_include in another macro
authorAlexander Richardson <arichardson.kde@gmail.com>
Tue, 24 Jul 2018 12:40:56 +0000 (12:40 +0000)
committerAlexander Richardson <arichardson.kde@gmail.com>
Tue, 24 Jul 2018 12:40:56 +0000 (12:40 +0000)
commit2a6a3fc4a39bf73c909f00a672ef300edffa18e2
treed3cb783da0c17325f1ce04cf3fc09e01a6b30d7e
parent63600c7487dcdd10f0e10a35ffe2f5f9f538ddda
Stop wrapping __has_include in another macro

Summary:
This is not guaranteed to work since the characters after '__has_include('
have special lexing rules that can't possibly be applied when
__has_include is generated by a macro. It also breaks the crash reproducers
generated by -frewrite-includes (see https://llvm.org/pr37990).

Reviewers: EricWF, rsmith, mclow.lists
Reviewed By: mclow.lists
Differential Revision: https://reviews.llvm.org/D49067

llvm-svn: 337824
libcxx/include/__config
libcxx/test/support/test_macros.h