summaryrefslogtreecommitdiff
path: root/clang-tools-extra/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
...
* [CMake] check_library_exists() requires inclusion in clang standalone build.NAKAMURA Takumi2014-01-191-0/+1
| | | | llvm-svn: 199578
* Initial checkin of new module-map-checker tool.John Thompson2014-01-071-0/+1
| | | | llvm-svn: 198693
* Introduce clang-query tool.Peter Collingbourne2013-11-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | This tool is for interactive exploration of the Clang AST using AST matchers. It currently allows the user to enter a matcher at an interactive prompt and view the resulting bindings as diagnostics, AST pretty prints or AST dumps. Example session: $ cat foo.c void foo(void) {} $ clang-query foo.c -- clang-query> match functionDecl() Match #1: foo.c:1:1: note: "root" binds here void foo(void) {} ^~~~~~~~~~~~~~~~~ 1 match. Differential Revision: http://llvm-reviews.chandlerc.com/D2098 llvm-svn: 194227
* pp-trace - preprocessor tacing and PPCallbacks testing toolJohn Thompson2013-10-311-0/+1
| | | | llvm-svn: 193743
* Rename cpp11-migrate to clang-modernize.Chandler Carruth2013-09-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Rename clang-replace -> clang-apply-replacementsEdwin Vane2013-09-031-1/+1
| | | | | | | | Made changes throughout clang-tools-extra for the renaming of clang-replace to clang-apply-replacements as per feedback from community. llvm-svn: 189832
* Introducing new tool clang-replaceEdwin Vane2013-08-221-0/+1
| | | | | | | | | | | | | | | | | | | | Introducing new tool 'clang-replace' that finds files containing serialized Replacements and applies those changes after deduplication and detecting conflicts. Currently the tool does not apply changes. It stops just after the deduplication and conflict report phase. Forthcoming patches will complete functionality. Both build systems updated for new tool. Includes a conflict test case. clang-replace added to Doxygen build. Differential Revision: http://llvm-reviews.chandlerc.com/D1424 llvm-svn: 189008
* Initial architecture for clang-tidy.Daniel Jasper2013-07-291-0/+1
| | | | | | | | | | | This is the first version of a possible clang-tidy architecture. The purpose of clang-tidy is to detect errors in adhering to common coding patterns, e.g. described in the LLVM Coding Standards. This is still heavily in flux. Review: http://llvm-reviews.chandlerc.com/D884 llvm-svn: 187345
* Unit test support for Clang extra toolsEdwin Vane2013-04-031-0/+1
| | | | | | | Added support to CMake and autoconf for unit tests in clang-tools-extra. A dummy test exists for now until more meaningful tests can be written. llvm-svn: 178661
* Remove clang-format from clang-tools-extra.Daniel Jasper2013-03-201-1/+0
| | | | llvm-svn: 177504
* Initial check in of Doug's modularize tool for checking header readiness for ↵John Thompson2013-03-121-0/+1
| | | | | | modules, plus some changes per review feedback: Removed system headers, changed to use stream output, added file name in message. llvm-svn: 176847
* Removing loop-convert toolEdwin Vane2013-01-101-1/+0
| | | | | | | | | cpp11-migrate now contains the loop convert transform code and tests. Cleaning up the old code/tests and updating build system files as necessary. Reviewers: klimek llvm-svn: 172074
* Initial commit for cpp11-migrate toolEdwin Vane2012-12-121-0/+1
| | | | | | | | - Added directory structures and build system files for the new tool. - Extremely basic implementation of tool performs only an initial syntax check. - Basic tests ensure syntax test works as expected. llvm-svn: 169983
* First version of a command line clang-format tool.Daniel Jasper2012-12-051-0/+1
| | | | | | | Reads a single source range (offset, length) as well as the style guide as parameters and then reformats everything it receives from stdin. llvm-svn: 169364
* loop-convert, a C++11 for loop modernizerSam Panzer2012-08-241-0/+1
| | | | | | | | | | | | | | | | | | A new Clang-based tool which converts for loops to use the range-based syntax new to C++11. Three kinds of loops can be converted: - Loops over statically allocated arrays - Loops over containers, using iterators - Loops over array-like containers, using operator[] and at() Each transformation is assigned a confidence level by the tool. The minimum require confidence level to actually apply the transformation can be specified on the command line, but the default level should be fine for most code. Like other tools based on RefactoringTool, it is easiest to use this tool with a compilation database. llvm-svn: 162627
* Reverted to correct commit this time.Sam Panzer2012-08-241-0/+1
| | | | llvm-svn: 162624
* Reverted incorect partial commit of loop migrator. git-svn strikes againSam Panzer2012-08-241-2/+0
| | | | llvm-svn: 162618
* For Loop ConversionSam Panzer2012-08-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Loop Converter Skeleton - array-step-1 Added a check to loop increments - array-step-2b Added a check on the loop's condition expression - array-step-2c Finished array matcher - array-step-2 Retrieved matched nodes - array-step-3 Analysis for array loop indices - array-step-4 Added checking for naming and variable scope Added confidence level and count-only command line args Added aliased variable elision Added support for iterator-based loops Added support for single-iterator loops which call end() repeatedly Added support for converting array-like containers llvm-svn: 162610
* Rename directory from 'toolTemplate' to 'tool-template'Marshall Clow2012-08-141-1/+1
| | | | llvm-svn: 161887
* Added a tool template to make creating new tools simplerMarshall Clow2012-08-141-0/+1
| | | | llvm-svn: 161886
* Add a root CMakeLists.txt and fix up all the test build stuff.Chandler Carruth2012-08-071-0/+4
With this we can build and test the remove-cstr-calls tool which should serve as a good example of how to add tools and their tests to the repository. llvm-svn: 161404