summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/cpp11-migrate/Cpp11Migrate.cpp
Commit message (Collapse)AuthorAgeFilesLines
* lib-ified core cpp11-migrate functionality to support unit testsEdwin Vane2013-04-041-136/+0
| | | | | | | | | | | | | | | | | | Summary: Transform.* and Transforms.* moved to form a new library: libmigrateCore. #includes updated to point to new header locations. To support autoconf build, Cpp11Migrate.cpp moved to new subdirectory 'tool' which also contains build files for creating final binary. CMake and autoconf updated to build the new library and link it with cpp11-migrate and with cpp11-migrate unit tests. Dummy unit tests replaced with simple, but real, tests for Transform's public interface. TODO: Lib-ifying the transforms to further simplify build of cpp11-migrate. llvm-svn: 178785
* Fixing Doxygen warnings in cpp11-migrateEdwin Vane2013-03-081-13/+1
| | | | | | Turned on doxygen warnings and fixed the resulting problems. llvm-svn: 176712
* Added summary option to cpp11-migrate toolDmitri Gribenko2013-03-051-0/+16
| | | | | | | | | Added a summary option that enables output to stdout counting the number of changes each transform has accepted, rejected or deferred. Patch by Ariel Bernal. llvm-svn: 176465
* cpp11-migrate: Reduce the number of parsing passes.Stefanus Du Toit2013-03-011-24/+20
| | | | | | | | | | | | | | | | Previously we would check the syntax of the file before we transform it, but that's redundant since it'll be checked as part of the transformation. Remove that check completely. We also had an unconditional syntax check after transforming. This is only really useful to debug cpp11-migrate, since users will end up compiling the transformed source anyways, and the transformations *should* never introduce a failure. Made this an option, accessible via "-final-syntax-check". Resolves PR 15380. llvm-svn: 176376
* Propagate changes through no-op transformsEdwin Vane2013-02-151-4/+0
| | | | | | | | | | | Currently, changes made by previous transforms are not kept if a transform doesn't make any changes itself to a given file. Now file states are propagated properly through transforms that don't make changes. Fixes: PR15281 Author: Jack Yang <jack.yang@intel.com> Reviewer: klimek llvm-svn: 175288
* Add use-nullptr transform to cpp11-migrateEdwin Vane2013-01-221-0/+13
| | | | | | | | | | | | | | | | | | | This transform converts the usage of null pointer constants (e.g. NULL, 0, etc.) in legacy C++ code and converts them to use the new C++11 nullptr keyword. - Added use-nullptr transform. - Added C++11 support to the final syntax check. Used ArgumentAdjuster class to add -std=c++11 option to the command line options. - Added tests for use-nullptr transform. - Added tests that exercises both loop-convert and use-nullptr in the source file. TODO: There's a known bug when using both -loop-convert and -use-nullptr at the same time. Author: Tareq A Siraj <tareq.a.siraj@intel.com> Reviewers: klimek, gribozavr llvm-svn: 173178
* Introduce llvm::sys::PrintStackTraceOnErrorSignal()NAKAMURA Takumi2013-01-181-0/+2
| | | | llvm-svn: 172821
* Write transform results to disk only onceEdwin Vane2013-01-161-19/+48
| | | | | | | | | | Instead of writing the result of each transform to disk for every transform, write the results to buffers in memory and pass those buffers to the next transform as input. Only write the buffers to disk if the final syntax check passes. Reviewers: klimek llvm-svn: 172657
* Port loop-convert into cpp11-migrateEdwin Vane2013-01-041-5/+44
| | | | | | | | | | | | | | Took existing code from loop-convert tool and made it into a cpp11-migrate transform. Pattern now set for having transform code in subdirectories. Related changes: - Makefile and CMakeLists.txt updated to support source files in subdirectories. - At least one transform must be specified. syntax-only tests removed to reflect this. - TODO: port over loop-convert tests. Reviewers: klimek, silvas llvm-svn: 171481
* Fix the sorting of the #include lines in these tools.Chandler Carruth2013-01-021-1/+1
| | | | | | This is done with the script in llvm/utils/sort_includes.py llvm-svn: 171365
* Use renamed CommonOptionsParser member functionsEdwin Vane2012-12-141-2/+2
| | | | | | | | GetCompilations() and GetSourcePathLists() were renamed to match LLVM style. Reviewed By: Alexander Kornienko llvm-svn: 170230
* Initial commit for cpp11-migrate toolEdwin Vane2012-12-121-0/+57
- 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
OpenPOWER on IntegriCloud