summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/modularize/Modularize.cpp
Commit message (Collapse)AuthorAgeFilesLines
* clang-tidy, modularize: return non-zero exit code on errorsAlexander Kornienko2018-03-221-1/+1
| | | | | | | When no inputs given, the tools should not only produce the help message, but also return a non-zero exit code. Fixed tests accordingly. llvm-svn: 328199
* Revert "[Tooling] [1/1] Refactor FrontendActionFactory::create() to return ↵Roman Lebedev2018-02-271-5/+4
| | | | | | | | | | | | std::unique_ptr<>" This reverts commit rL326202 This broke gcc4.8 builds, compiler just segfaults: http://lab.llvm.org:8011/builders/clang-atom-d525-fedora-rel/builds/14909 http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/22673 llvm-svn: 326203
* [Tooling] [1/1] Refactor FrontendActionFactory::create() to return ↵Roman Lebedev2018-02-271-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | std::unique_ptr<> Summary: I'm not sure whether there are any principal reasons why it returns raw owning pointer, or it is just a old code that was not updated post-C++11. I'm not too sure what testing i should do, because `check-all` is not error clean here for some reason, but it does not //appear// asif those failures are related to these changes. This is Clang-tools-extra part. Clang part is D43779. Reviewers: klimek, bkramer, alexfh, pcc Reviewed By: alexfh Subscribers: ioeric, jkorous-apple, cfe-commits Tags: #clang, #clang-tools-extra Differential Revision: https://reviews.llvm.org/D43780 llvm-svn: 326202
* Update for PrintHelpMessage not calling exit.Rafael Espindola2017-09-081-1/+1
| | | | llvm-svn: 312769
* modernize-use-auto NFC fixesPiotr Padlewski2016-12-141-3/+1
| | | | llvm-svn: 289656
* Adapt to TraverseLambdaCapture interface change from D23204Martin Bohme2016-08-171-2/+8
| | | | | | | | | | | | | | | Summary: Depends on D23204. This is intended to be submitted immediately after D23204 lands. Reviewers: jdennett, alexfh Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D23543 llvm-svn: 278934
* Accommodate interface change in r252134.Alexander Kornienko2015-11-051-1/+2
| | | | llvm-svn: 252138
* Prune CRLF.NAKAMURA Takumi2015-09-141-2/+2
| | | | llvm-svn: 247541
* Added mechanism to modularize for doing a compilation precheckJohn Thompson2015-07-101-5/+139
| | | | | | | | | | | | 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 erroneous comments.John Thompson2015-07-081-5/+1
| | | | llvm-svn: 241726
* Fixed erroneous comment.John Thompson2015-07-081-1/+1
| | | | llvm-svn: 241724
* Revert r241330. It compiled with Visual C++ 2013 and gcc 4.9.1 (mingw) but ↵Yaron Keren2015-07-031-2/+2
| | | | | | now fails the bots. llvm-svn: 241335
* Replace some const std::string & with llvm::StringRef or std::stringYaron Keren2015-07-031-2/+2
| | | | | | | | and std::move to avoid implicit std::string construction. Patch by Eugene Kosov. llvm-svn: 241330
* Update for LLVM API change to return by InputArgList directly (rather than ↵David Blaikie2015-06-221-3/+3
| | | | | | by pointer) from ParseArgs llvm-svn: 240348
* Update for ParseARgs ArrayRef-ificationDavid Blaikie2015-06-211-3/+2
| | | | llvm-svn: 240239
* Fixed modularize to warn about missing headers referenced in a module map.John Thompson2015-06-041-2/+2
| | | | llvm-svn: 239122
* Fixed option comment. '=' is required.John Thompson2015-06-041-5/+6
| | | | llvm-svn: 238997
* Changed option processing to implicitly use -x c++ if no other -x option ↵John Thompson2015-05-061-4/+12
| | | | | | specified. Added implicit -w option to disable compilation warnings, in particular to avoid warning on pragma once. llvm-svn: 236625
* Fix clang-tools-extra build after clang r235614.Richard Smith2015-04-231-1/+1
| | | | llvm-svn: 235642
* Use 'override/final' instead of 'virtual' for overridden methodsAlexander Kornienko2015-04-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | Summary: The patch is generated using clang-tidy misc-use-override check. This command was used: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \ -checks='-*,misc-use-override' -header-filter='llvm|clang' -j=32 -fix svn diff | clang-format-diff -i Reviewers: dblaikie Reviewed By: dblaikie Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D8927 llvm-svn: 234681
* Make helpers static. clang-tools edition.Benjamin Kramer2015-03-231-12/+13
| | | | | | Also purge dead code found by it. NFC. llvm-svn: 232948
* Added module map coverage support, extracted from module-map-checker.John Thompson2015-02-191-8/+72
| | | | llvm-svn: 229869
* Added support for extracting headers from module maps as a source for the ↵John Thompson2015-02-181-8/+23
| | | | | | header list. llvm-svn: 229692
* Updated file comment on modularize usage, as it was out-of-date.John Thompson2015-02-181-3/+23
| | | | llvm-svn: 229677
* Add canonical path conversion function and use it so paths are consistent.John Thompson2015-02-171-1/+1
| | | | llvm-svn: 229540
* Moved header list loading to new class. This is staging for adding module ↵John Thompson2015-02-131-93/+19
| | | | | | map loading and checking support. llvm-svn: 229108
* Modularize.cpp: Simplify. Vector may be aware of ranged-for.NAKAMURA Takumi2015-02-131-6/+5
| | | | llvm-svn: 228993
* Modularize.cpp: Prune CRLFs.NAKAMURA Takumi2015-02-131-4/+4
| | | | llvm-svn: 228992
* Added support for multiple header list files, as a precursor for when we ↵John Thompson2015-02-121-9/+13
| | | | | | need to load multiple module maps. llvm-svn: 228935
* Added -block-check-header-list-only option. This is a work-around for ↵John Thompson2015-02-111-1/+11
| | | | | | private includes that purposefully get included inside blocks. llvm-svn: 228846
* Renamed module.map to module.modulemap (modularize).John Thompson2015-02-101-6/+7
| | | | llvm-svn: 228693
* Make ArgumentsAdjuster an std::function (clang-tools-extra part of D6505).Alexander Kornienko2014-12-031-21/+13
| | | | | | | | | | | | Reviewers: klimek Reviewed By: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D6506 llvm-svn: 223249
* Recommit 213308: unique_ptr-ify ownership of ASTConsumers (reverted in r213324)David Blaikie2014-08-101-4/+4
| | | | | | | | After post-commit review and community discussion, this seems like a reasonable direction to continue, making ownership semantics explicit in the source using the type system. llvm-svn: 215324
* Plug memory leaks.Benjamin Kramer2014-07-241-2/+2
| | | | | | | Most of the changes are mechanic std::unique_ptr insertions. All leaks were detected by LeakSanitizer. llvm-svn: 213851
* Revert "unique_ptr-ify ownership of ASTConsumers"David Blaikie2014-07-171-4/+4
| | | | | | | | | This reverts commit r213308. Reverting to have some on-list discussion/confirmation about the ongoing direction of smart pointer usage in the LLVM project. llvm-svn: 213324
* unique_ptr-ify ownership of ASTConsumersDavid Blaikie2014-07-171-4/+4
| | | | llvm-svn: 213308
* Update for llvm api change.Rafael Espindola2014-07-061-5/+5
| | | | llvm-svn: 212406
* Prefix error_code with std.Rafael Espindola2014-06-121-8/+8
| | | | llvm-svn: 210840
* Quick build fix.Rafael Espindola2014-06-121-0/+1
| | | | llvm-svn: 210838
* [C++11] Use 'nullptr'.Craig Topper2014-06-091-1/+1
| | | | llvm-svn: 210447
* Remove inclusions of LLVM's private config.hAlp Toker2014-06-041-1/+0
| | | | llvm-svn: 210146
* Use error_code() instead of error_code::succes()Rafael Espindola2014-05-311-1/+1
| | | | | | | There is no std::error_code::success, so this removes much of the noise in transitioning to std::error_code. llvm-svn: 209953
* Update for Clang API change and move ClangTidyDiagnosticRenderer into an ↵Benjamin Kramer2014-05-101-1/+1
| | | | | | anonymous namespace while there. llvm-svn: 208471
* [C++11] Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-091-6/+5
| | | | | | | | This removes all references to OwningPtr, which should be fairly undisruptive to out-of-tree projects since they are unlikely to use clang-tools-extra as a library instead of a set of tools. llvm-svn: 203382
* Fix the top header that corresponds to this source file. Thanks forChandler Carruth2014-01-071-1/+1
| | | | | | spotting this Cody Maloney! llvm-svn: 198716
* Run llvm/utils/sort_includes.py over the Clang tools code. This doesn'tChandler Carruth2014-01-071-2/+2
| | | | | | | | | | always produce as pretty of results as it does in LLVM and Clang, but I don't mind and the value of having a single canonical ordering is very high IMO. Let me know if you spot really serious problems here. llvm-svn: 198703
* Fix assertion error.John Thompson2013-12-101-1/+1
| | | | llvm-svn: 196863
* Improve comment, as requested by Alp Toker.John Thompson2013-12-041-1/+1
| | | | llvm-svn: 196409
* Fix a variety of user-visible and comment typosAlp Toker2013-12-011-2/+2
| | | | llvm-svn: 196038
* Added module map generation option.John Thompson2013-10-151-4/+56
| | | | llvm-svn: 192703
OpenPOWER on IntegriCloud