Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix build, adjust test also for Windows path separator | Lubos Lunak | 2019-09-18 | 1 | -1/+1 |
| | | | | | | Introduced in 1e9c1d2b7bfc. llvm-svn: 372263 | ||||
* | actually also compile output in tests for -frewrite-includes | Lubos Lunak | 2019-09-18 | 1 | -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/#elif | Lubos Lunak | 2019-09-18 | 1 | -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 |