summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/prune.m
Commit message (Collapse)AuthorAgeFilesLines
* [test] Disable Modules/prune.m on NetBSD as it requires 'touch -a'Michal Gorny2018-12-051-0/+3
| | | | llvm-svn: 348356
* [Modules] Change private modules rules and warningsBruno Cardoso Lopes2017-12-221-5/+5
| | | | | | | | | | | | | | | | We used to advertise private modules to be declared as submodules (Foo.Private). This has proven to not scale well since private headers might carry several dependencies, introducing unwanted content into the main module and often causing dep cycles. Change the canonical way to name it to Foo_Private, forcing private modules as top level ones, and provide warnings under -Wprivate-module to suggest fixes for other private naming. Update documentation to reflect that. rdar://problem/31173501 llvm-svn: 321337
* Remove 24 instances of 'REQUIRES: shell'Reid Kleckner2016-10-201-5/+2
| | | | | | | | | | | | | | | | | Tests fall into one of the following categories: - The requirement was unnecessary - Additional quoting was required for backslashes in paths (see "sed -e 's/\\/\\\\/g'") in the sanitizer tests. - OpenMP used 'REQUIRES: shell' as a proxy for the test failing on Windows. Those tests fail there reliably, so use XFAIL instead. I tried not to remove shell requirements that were added to suppress flaky test failures, but if I screwed up, we can add it back as needed. llvm-svn: 284793
* [modules] Simplify -cc1 interface for enabling implicit module maps.Richard Smith2015-06-161-5/+5
| | | | | | | | | | | | | We used to have a flag to enable module maps, and two more flags to enable implicit module maps. This is all redundant; we don't need any flag for enabling module maps in the abstract, and we don't usually have -fno- flags for -cc1. We now have just a single flag, -fimplicit-module-maps, that enables implicitly searching the file system for module map files and loading them. The driver interface is unchanged for now. We should probably rename -fmodule-maps to -fimplicit-module-maps at some point. llvm-svn: 239789
* Fix find command in test/Modules/prune.m broken by r206201Ben Langmuir2014-04-141-1/+1
| | | | llvm-svn: 206203
* Allow multiple modules with the same name to coexist in the module cacheBen Langmuir2014-04-141-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To differentiate between two modules with the same name, we will consider the path the module map file that they are defined by* part of the ‘key’ for looking up the precompiled module (pcm file). Specifically, this patch renames the precompiled module (pcm) files from cache-path/<module hash>/Foo.pcm to cache-path/<module hash>/Foo-<hash of module map path>.pcm In addition, I’ve taught the ASTReader to re-resolve the names of imported modules during module loading so that if the header search context changes between when a module was originally built and when it is loaded we can rebuild it if necessary. For example, if module A imports module B first time: clang -I /path/to/A -I /path/to/B ... second time: clang -I /path/to/A -I /different/path/to/B ... will now rebuild A as expected. * in the case of inferred modules, we use the module map file that allowed the inference, not the __inferred_module.map file, since the inferred file path is the same for every inferred module. llvm-svn: 206201
* Remove local path from test.Douglas Gregor2013-03-251-2/+2
| | | | llvm-svn: 177925
* Use xargs rather than Douglas Gregor2013-03-251-2/+2
| | | | llvm-svn: 177923
* Use 'touch -t', which both BSD and Linux support.Douglas Gregor2013-03-251-4/+4
| | | | llvm-svn: 177921
* <rdar://problem/13434605> Periodically prune the module cache so that it ↵Douglas Gregor2013-03-251-0/+46
does not grow forever. llvm-svn: 177918
OpenPOWER on IntegriCloud