summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-modernize
Commit message (Collapse)AuthorAgeFilesLines
* Remove clang-modernize.Alexander Kornienko2015-12-177-1076/+0
| | | | | | | | | | | | | | Summary: clang-modernize transforms have moved to clang-tidy. Removing the old tool now. Reviewers: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D15606 llvm-svn: 255886
* Use 'override/final' instead of 'virtual' for overridden methodsAlexander Kornienko2015-04-113-16/+16
| | | | | | | | | | | | | | | | | | | | | | 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
* Revert "Adapt clang-tools-extra to clang module format changes."Adrian Prantl2015-02-251-3/+2
| | | | | | This reverts commit 230424. llvm-svn: 230456
* Adapt clang-tools-extra to clang module format changes.Adrian Prantl2015-02-251-2/+3
| | | | | | | - add clangCodeGen.a to the tools that need it - tweak pp-trace command line handling to not conflict with clang's. llvm-svn: 230424
* Revert "Adapt Makefile dependencies for the clang module format change in ↵Adrian Prantl2015-02-211-3/+3
| | | | | | r230089." llvm-svn: 230104
* Adapt Makefile dependencies for the clang module format change in r230089.Adrian Prantl2015-02-201-3/+3
| | | | llvm-svn: 230090
* [CMake] Add dependencies on clangToolingCore.NAKAMURA Takumi2014-10-301-0/+1
| | | | llvm-svn: 220890
* Fix Makefiles after r220867.Daniel Jasper2014-10-291-5/+6
| | | | llvm-svn: 220868
* Prune CRLF.NAKAMURA Takumi2014-10-271-97/+97
| | | | llvm-svn: 220678
* Plug a unit test memory leak.Benjamin Kramer2014-09-041-1/+2
| | | | | | MatchFinder.addMatcher doesn't take ownership. llvm-svn: 217162
* Recommit 213308: unique_ptr-ify ownership of ASTConsumers (reverted in r213324)David Blaikie2014-08-101-2/+2
| | | | | | | | 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
* Revert "unique_ptr-ify ownership of ASTConsumers"David Blaikie2014-07-171-2/+2
| | | | | | | | | 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-2/+2
| | | | llvm-svn: 213308
* Track clang r213171Alp Toker2014-07-161-1/+1
| | | | | | The clang rewriter is now a core facility. llvm-svn: 213172
* include system_error directly.Rafael Espindola2014-06-121-1/+1
| | | | llvm-svn: 210797
* Replace llvm::error_code with std::error_code.Rafael Espindola2014-06-123-11/+11
| | | | llvm-svn: 210776
* [C++11] Use 'nullptr'.Craig Topper2014-06-092-2/+2
| | | | llvm-svn: 210447
* Use error_code() instead of error_code::succes()Rafael Espindola2014-05-311-4/+4
| | | | | | | There is no std::error_code::success, so this removes much of the noise in transitioning to std::error_code. llvm-svn: 209953
* Try to fix the build. newFrontendActionFactory was changed to return a ↵Benjamin Kramer2014-04-281-2/+3
| | | | | | unique_ptr. llvm-svn: 207407
* [C++11] Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-091-1/+1
| | | | | | | | 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
* [C++11] Replace LLVM_OVERRIDE with 'override'Craig Topper2014-03-021-2/+2
| | | | llvm-svn: 202632
* Run llvm/utils/sort_includes.py over the Clang tools code. This doesn'tChandler Carruth2014-01-073-4/+4
| | | | | | | | | | 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
* [CMake] clang-tools-extra: Update dependencies.NAKAMURA Takumi2013-12-101-5/+5
| | | | llvm-svn: 196860
* clang-modernize: Apply replacements using clang-apply-replacementsEdwin Vane2013-10-056-264/+10
| | | | | | | | | | | | | | | | | | | | | Summary: The clang-apply-replacements process is now invoked to apply replacements between applying transforms. This resulted in a massive simplification of the tool: - FileOverrides class no longer needed. - Change tracking and code formatting no longer needed. - No more dependency on libclangApplyReplacements. - Final syntax check is easier to do directly now than with a separate header/source pair. Replacement handling stuff abstracted into a new header/source pair to de-clutter ClangModernize.cpp somewhat. Tests updated. Differential Revision: http://llvm-reviews.chandlerc.com/D1836 llvm-svn: 192032
* clang-apply-replacements: Add code formatting functionalityEdwin Vane2013-09-308-111/+9
| | | | | | | | | | | | | | The tool now supports a collection of arguments to turn on and provide settings for the formatting of code affected by applying replacements: * --format turns on formatting (default style is LLVM) * --style controls code style settings * --style-config allows one to explicitly indicate where a style config file lives. The libclangApplyReplacements interface has a new function to turn Replacements into Ranges to be used with tooling::reformat(). llvm-svn: 191667
* clang-modernize: Fixing a few left over cpp11-migrate referencesEdwin Vane2013-09-262-5/+5
| | | | | | Build files for unit tests hadn't been updated yet. llvm-svn: 191451
* Transform files in a compilation database if no sources are provided.Ariel J. Bernal2013-09-121-1/+1
| | | | | | | Compile all files in a compilation database or a subset determined by a sub-directory so you don't have to specify them manually. llvm-svn: 190630
* clang-modernize: Remove -headers optionEdwin Vane2013-09-061-26/+8
| | | | | | | | | | | | clang-modernize can now transform headers properly and the experimental -headers option is no longer necessary. Remember, at least -include is necessary for indicating which headers are allowed to be changed. Differential Revision: http://llvm-reviews.chandlerc.com/D1610 llvm-svn: 190158
* Update the header guards for clang-modernize's unittests.Chandler Carruth2013-09-042-6/+6
| | | | llvm-svn: 189974
* Fix up a few straggling bits of the build system. This should fix theChandler Carruth2013-09-042-2/+2
| | | | | | | build of the clang-modernize unittest which is for some reason not being built by default on my system (sorry about that). llvm-svn: 189966
* Rename cpp11-migrate to clang-modernize.Chandler Carruth2013-09-0411-0/+1446
There is no reason to expect this tool to be limited to C++11, it seems very likely to be of on-going interest. It seems likely to be useful for modernizing even as new libraries come out in TSes and other formats than a complete standard. Fundamentally, we need something a bit more general. After some discussion on the list, going with 'clang-modernize'. I've tried to do a reasonably comprehensive job of fixing up the names, but I may still have missed some. Feel free to poke me if you spot any fallout here. Things I've tried reasonably hard to find and fix: - cpp11-migrate -> clang-modernize - Migrator -> Modernizer - Clean up the introductory documentation that was C++11 specific. I'll also point out that this tool continues to delight me. =] Also, a huge thanks to those who have so carefully, thoroughly documented the tool. The docs here are simply phenomenal. Every tool should be this well documented. I hope I have updated the documentation reasonably well, but I'm not very good at documentation, so review much appreciated. llvm-svn: 189960
OpenPOWER on IntegriCloud