summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Unit test support for Clang extra toolsEdwin Vane2013-04-031-0/+8
| | | | | | | 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
* Added simple regression test for modularize.John Thompson2013-03-261-1/+1
| | | | llvm-svn: 177960
* Remove clang-format tests from tools/extra.Daniel Jasper2013-03-251-1/+1
| | | | | | These will be re-added to clang/test. llvm-svn: 177852
* Switch from autogenerating tests to using the preprocessor.Chandler Carruth2013-03-071-19/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTE: You may need to run 'make clean' or 'ninja -t clean' etc!!! This is due to really nasty bug/interactions between CMake/configure/make/Ninja/LIT... This commit tries to back out the support for generating test cases as part of the build system due to the issues I brought up in post-commit review: 1) It adds a *lot* of complexity and fragility to the build system. See the number of commits required to try to get all the bots happy. 2) It isn't really necessary -- we can already run scripts to generate things with the RUN lines of a test. 3) It makes the tests somewhat harder to debug as they cross between more domains. 4) In almost all cases it isn't really needed or it can be done directly using the preprocessor. I should have been more proactive reviewing this, and I'm really sorry about the churn here. =/ To help keep track of what commits are going where, this backs out most of the non-test-changes from these revisions: r176397 r176373 r176293 r176184 r175744 r175624 r175545 r175544 There were several trivial or cleanup changes to the lit files or other files. Some of these looked ok, but I didn't try to tease them apart... Edwin, if you know what to look for, please carry on with the cleanups there, and sorry for hosing stuff here but I'm not much of a Python person, and so I was erring on the side of cautiously backing out the change. I've tried to preserve the test changes everywhere I could, but review is appreciated here in case I missed some. I then re-wrote the tests to use the preprocessor rather than python to expand to the various bits of code. The nicest part of this is that now all the files are just C++ code. They edit and behave like C++ code, etc. RUN lines with different -D flags are used to run the same test over multiple different configurations, and includes bracketed in special defines are used to flesh out a collection of standard interface stubs to test interactions between pieces. These probably aren't perfect yet, but I think its an improvement (at least in terms of build system complexity) and will hopefully be a useful demonstration of the technique I prefer for these types of tests. llvm-svn: 176627
* Custom lit.site.cfg configuration for cpp11-migrateEdwin Vane2013-02-271-6/+7
| | | | | | | | | | | To afford hand-written tests access to any auto-generated headers, a lit.site.cfg is now created for cpp11-migrate's test directory providing a new config.substition. Tests can refer to %gen_root in the LIT script. Removed use of --param clang_site_config. Not necessary when running tests using the build system. llvm-svn: 176184
* Tweaks and fixes to cpp11-migrate generated testsEdwin Vane2013-02-201-1/+1
| | | | | | | | | * Fixed a comment typo * Changed 'autogen' to 'generated-tests' * Made the clean target not fail if the 'generated-tests' directory doesn't already exist. llvm-svn: 175624
* Add support for auto-generating LIT tests by the buildEdwin Vane2013-02-191-6/+14
| | | | | | | | | | | | | | autoconf and CMake flavours both updated to auto-generate files for use in cpp11-migrate's LIT tests. Auto-generated files are placed in the build directory under test/cpp11-migrate/autogen. The directory structure past this point mirrors the structure in the source directory under test/cpp11-migrate. A lit.site.cfg is generated in test/cpp11-migrate/autogen to describe the new test suite. When LIT runs, it runs the standard testsuite and now also the auto-generated testsuite. llvm-svn: 175544
* Added a test for clang-format diagnostics.Alexander Kornienko2013-01-141-1/+1
| | | | llvm-svn: 172407
* Removing loop-convert toolEdwin Vane2013-01-101-1/+1
| | | | | | | | | 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-1/+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
* loop-convert, a C++11 for loop modernizerSam Panzer2012-08-241-1/+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 incorect partial commit of loop migrator. git-svn strikes againSam Panzer2012-08-241-1/+1
| | | | llvm-svn: 162618
* For Loop ConversionSam Panzer2012-08-241-1/+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
* Add a root CMakeLists.txt and fix up all the test build stuff.Chandler Carruth2012-08-071-80/+21
| | | | | | | | 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
* Copy some of the testing infrastructure from the primary Clang repository intoChandler Carruth2012-08-071-0/+93
the new tools repo to preserve history. I'll subsequently be editting these down to work w/ the tooling test suites. llvm-svn: 161402
OpenPOWER on IntegriCloud