summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/diagnostics.modulemap
Commit message (Collapse)AuthorAgeFilesLines
* Support lazy stat'ing of files referenced by module maps.Richard Smith2017-06-021-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for a `header` declaration in a module map to specify certain `stat` information (currently, size and mtime) about that header file. This has two purposes: - It removes the need to eagerly `stat` every file referenced by a module map. Instead, we track a list of unresolved header files with each size / mtime (actually, for simplicity, we track submodules with such headers), and when attempting to look up a header file based on a `FileEntry`, we check if there are any unresolved header directives with that `FileEntry`'s size / mtime and perform deferred `stat`s if so. - It permits a preprocessed module to be compiled without the original files being present on disk. The only reason we used to need those files was to get the `stat` information in order to do header -> module lookups when using the module. If we're provided with the `stat` information in the preprocessed module, we can avoid requiring the files to exist. Unlike most `header` directives, if a `header` directive with `stat` information has no corresponding on-disk file the enclosing module is *not* marked unavailable (so that behavior is consistent regardless of whether we've resolved a header directive, and so that preprocessed modules don't get marked unavailable). We could actually do this for all `header` directives: the only reason we mark the module unavailable if headers are missing is to give a diagnostic slightly earlier (rather than waiting until we actually try to build the module / load and validate its .pcm file). Differential Revision: https://reviews.llvm.org/D33703 llvm-svn: 304515
* [modules] When diagnosing errors in module map files found by 'extern ↵Richard Smith2015-07-141-0/+3
| | | | | | module' declarations, show how we got to that module map file. llvm-svn: 242105
* [modules] Restrict the module use-declaration to only appear in top-levelRichard Smith2015-03-261-6/+8
| | | | | | | modules, and allow sub-modules of a module with a use-declaration to make use of the nominated modules. llvm-svn: 233323
* [modules] Accept //-style comments in module maps on purpose rather than byRichard Smith2015-02-141-0/+4
| | | | | | accident, and accept them even when they begin '//*'. llvm-svn: 229240
* PR22299: Relocate code for handling -fmodule-map-file= so that we don't try toRichard Smith2015-01-231-0/+8
produce diagnostics with source locations before the diagnostics system is ready for them. llvm-svn: 226882
OpenPOWER on IntegriCloud