summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/rewrite-includes-conditions.c
Commit message (Collapse)AuthorAgeFilesLines
* fix build, adjust test also for Windows path separatorLubos Lunak2019-09-181-1/+1
| | | | | | Introduced in 1e9c1d2b7bfc. llvm-svn: 372263
* actually also compile output in tests for -frewrite-includesLubos Lunak2019-09-181-14/+20
| | | | | | | | | Checking that the created output matches something is nice, but this should also check whether the output makes sense. Differential Revision: https://reviews.llvm.org/D63979 llvm-svn: 372250
* make -frewrite-includes also rewrite conditions in #if/#elifLubos Lunak2019-09-181-0/+107
Those conditions may use __has_include, which needs to be rewritten. The existing code has already tried to rewrite just __has_include, but it didn't work with macro expansion, so e.g. Qt's "#define QT_HAS_INCLUDE(x) __has_include(x)" didn't get handled properly. Since the preprocessor run knows what each condition evaluates to, just rewrite the entire condition. This of course requires that the -frewrite-include pass has the same setup as the following compilation, but that has always been the requirement. Differential Revision: https://reviews.llvm.org/D63508 llvm-svn: 372248
OpenPOWER on IntegriCloud