summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/modularize/ModularizeUtilities.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tools-extra] Adopt FileManager's error-returning APIsHarlan Haskins2019-08-011-5/+10
| | | | | | | | The FileManager has been updated to return llvm::ErrorOr from getFile and getDirectory, this commit updates all the callers of those APIs from clang. llvm-svn: 367617
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Support: Have directory_iterator::status() return ↵Peter Collingbourne2017-10-101-3/+4
| | | | | | | | | | | | | | | | | | FindFirstFileEx/FindNextFile results on Windows. This allows clients to avoid an unnecessary fs::status() call on each directory entry. Because the information returned by FindFirstFileEx is a subset of the information returned by a regular status() call, I needed to extract a base class from file_status that contains only that information. On my machine, this reduces the time required to enumerate a ThinLTO cache directory containing 520k files from almost 4 minutes to less than 2 seconds. Differential Revision: https://reviews.llvm.org/D38716 llvm-svn: 315378
* Fix memory leak by using unique_ptrDavid Blaikie2017-02-111-2/+3
| | | | llvm-svn: 294823
* Fixes for Clang API changeDavid Blaikie2017-01-061-19/+16
| | | | llvm-svn: 291203
* Deleted unused typedefPiotr Padlewski2016-12-141-1/+0
| | | | llvm-svn: 289658
* modernize-use-auto NFC fixesPiotr Padlewski2016-12-141-4/+3
| | | | llvm-svn: 289656
* Add qualifiers that are about to be necessary. NFCPaul Robinson2016-02-051-2/+2
| | | | llvm-svn: 259949
* Added coverage check for extensionless headers, and exclude hidden dot ↵John Thompson2015-12-041-1/+1
| | | | | | directoryies. llvm-svn: 254785
* Backing out 254635 until I have a good workaround and test case.John Thompson2015-12-041-1/+1
| | | | llvm-svn: 254756
* Fixed header determination logic. Was missing extensionless headers in ↵John Thompson2015-12-031-1/+1
| | | | | | coverage check. llvm-svn: 254635
* Added mechanism to modularize for doing a compilation precheckJohn Thompson2015-07-101-20/+143
| | | | | | | | | | | | to determine files that have comnpilation or dependency problems. A new -display-file-lists option use this to display lists of good files (no compile errors), problem files, and a combined list with problem files preceded by a '#'. The problem files list can be used in the module map generation assistant mode to exclude problem files. The combined files list can be used during module map development. See added docs. llvm-svn: 241880
* Fixed modularize to warn about missing headers referenced in a module map.John Thompson2015-06-041-0/+19
| | | | llvm-svn: 239122
* Update to match clang r237508.Richard Smith2015-05-161-2/+2
| | | | llvm-svn: 237509
* Make helpers static. clang-tools edition.Benjamin Kramer2015-03-231-1/+3
| | | | | | Also purge dead code found by it. NFC. llvm-svn: 232948
* Renamed function to avoid confusion about purpose.John Thompson2015-03-061-3/+5
| | | | llvm-svn: 231440
* Fixed canonical path function.John Thompson2015-02-261-1/+19
| | | | llvm-svn: 230665
* Remove carriage returns.Nick Lewycky2015-02-201-5/+5
| | | | llvm-svn: 229975
* Added module map coverage support, extracted from module-map-checker.John Thompson2015-02-191-2/+47
| | | | llvm-svn: 229869
* Pruned some unneeded code and comments.John Thompson2015-02-191-4/+2
| | | | llvm-svn: 229855
* Added support for extracting headers from module maps as a source for the ↵John Thompson2015-02-181-6/+209
| | | | | | header list. llvm-svn: 229692
* Add canonical path conversion function and use it so paths are consistent.John Thompson2015-02-171-1/+16
| | | | llvm-svn: 229540
* Moved header list loading to new class. This is staging for adding module ↵John Thompson2015-02-131-0/+124
map loading and checking support. llvm-svn: 229108
OpenPOWER on IntegriCloud