summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/preprocess
Commit message (Collapse)AuthorAgeFilesLines
* When preprocessing with -frewrite-imports and -fmodule-file=, do not pass allRichard Smith2017-06-264-1/+9
| | | | | | | | | | | modules to preprocessing of nested .pcm files. Making those module files available results in loading more .pcm files than necessary, and potentially in misbehavior if a module makes itself visible during its own compilation (as parts of that module that have not yet been processed would then become visible). llvm-svn: 306320
* [modules] When we #include a local submodule header that we've already built,Richard Smith2017-05-304-0/+13
| | | | | | | | | | and it has an include guard, produce callbacks for a module import, not for a skipped non-modular header. Fixes -E output when preprocessing a module to list these cases as a module import, rather than suppressing the #include and losing the import side effect. llvm-svn: 304183
* Add #pragma clang module begin/end pragmas and generate them when ↵Richard Smith2017-05-042-1/+3
| | | | | | | | | | | | | | preprocessing a module. These pragmas are intended to simulate the effect of entering or leaving a file with an associated module. This is not completely implemented yet: declarations between the pragmas will not be attributed to the correct module, but macro visibility is already functional. Modules named by #pragma clang module begin must already be known to clang (in some module map that's either loaded or on the search path). llvm-svn: 302098
* [modules] When using -E, we may try to merge decls despite having no SemaRichard Smith2015-02-043-0/+6
object. In such a case, use the TU's DC for merging global decls rather than giving up when we find there is no TU scope. Ultimately, we should probably avoid all loading of decls when preprocessing, but there are other reasonable use cases for loading an AST file with no Sema object for which this is the right thing. llvm-svn: 228234
OpenPOWER on IntegriCloud