summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/cpp11-migrate/Core/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Rename cpp11-migrate to clang-modernize.Chandler Carruth2013-09-041-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* cpp11-migrate: Add a class to support include directives modificationsGuillaume Papin2013-08-271-0/+1
| | | | | | | | | | | The IncludeDirectives class helps with detecting and modifying #include directives. For now it allows the users to add angled-includes in a source file. This is a start for this class that will evolve in the future to add more functionality. This should fix the reverted commit r189037 (buildbot failures on Windows). llvm-svn: 189354
* Revert "cpp11-migrate: Add a class to support include directives modifications"Guillaume Papin2013-08-221-1/+0
| | | | | | | | | | This reverts commit r189017. It broke the windows bots: - http://bb.pgr.jp/builders/ninja-clang-i686-msc17-R/builds/4176 - http://bb.pgr.jp/builders/cmake-clang-i686-mingw32/builds/3837 llvm-svn: 189037
* cpp11-migrate: Add a class to support include directives modificationsGuillaume Papin2013-08-221-0/+1
| | | | | | | | | | | The IncludeDirectives class helps with detecting and modifying #include directives. For now it allows the users to add angled-includes in a source file. This is a start for this class that will evolve in the future to add more functionality. This should fix the reverted commit r188791 (buildbot failures on Windows). llvm-svn: 189017
* Revert "cpp11-migrate: Add a class to support include directives modifications"Guillaume Papin2013-08-201-1/+0
| | | | | | | | This reverts commit r188791. The Windows bots are still broken. llvm-svn: 188795
* cpp11-migrate: Add a class to support include directives modificationsGuillaume Papin2013-08-201-0/+1
| | | | | | | | | | | The IncludeDirectives class helps with detecting and modifying #include directives. For now it allows the users to add angled-includes in a source file. This is a start for this class that will evolve in the future to add more functionality. This should fix the reverted commit r188610 (buildbot failures on Windows). llvm-svn: 188791
* Revert "cpp11-migrate: Add a class to support include directives modifications"Guillaume Papin2013-08-171-1/+0
| | | | | | | | | This reverts commit r188610. Issue with the absolute include paths not found in the unit tests on the Windows bots. Needs investigation. llvm-svn: 188611
* cpp11-migrate: Add a class to support include directives modificationsGuillaume Papin2013-08-171-0/+1
| | | | | | | | | The IncludeDirectives class helps with detecting and modifying #include directives. For now it allows the users to add angled-includes in a source file. This is a start for this class that will evolve in the future to add more functionality. llvm-svn: 188610
* cp11-migrate: Integration with LibFormatEdwin Vane2013-07-231-0/+3
| | | | | | | | | | | Adding a feature to optionally reformat code changed by the migrator. Like LibFormat, can choose between built-in styles (LLVM, Mozilla, Google, Chromium) or use a YAML-format config file. Now with no dependency on iostream by the Reformatting.cpp LIT test. Author: Guillaume Papin <guillaume.papin@epitech.eu> llvm-svn: 186938
* Revert "cp11-migrate: Integration with LibFormat"Michael Gottesman2013-07-221-3/+0
| | | | | | | | | | This reverts commit r186866. This breaks the build and the original author Guillaume Papin <guillaume.papin@epitech.eu> asked me to revert so he could look at it more with revane. llvm-svn: 186873
* cp11-migrate: Integration with LibFormatEdwin Vane2013-07-221-0/+3
| | | | | | | | | Adding a feature to optionally reformat code changed by the migrator. Like LibFormat, can choose between built-in styles (LLVM, Mozilla, Google, Chromium) or use a YAML-format config file. Author: Guillaume Papin <guillaume.papin@epitech.eu> llvm-svn: 186866
* cpp11-migrate: Replace file override containerEdwin Vane2013-06-131-0/+2
| | | | | | | | | | | | A more flexible container for storing overrides is required for headers. Before a source goes through the transform pipeline, any headers it references will be in their original state and unaffected by transforms applied to other sources. Therefore overrides for headers need to be kept separate for each source file. This patch doesn't introduce support for storing header overrides yet. It only replaces the existing structure and makes any necessary changes to support it. llvm-svn: 183910
* cpp11-migrate: Eliminate windows line endingsEdwin Vane2013-06-051-13/+13
| | | | | | | r183274 accidentally added windows line endings to changed lines. Changing them back. llvm-svn: 183322
* cpp11-migrate: collect performance timers per source fileEdwin Vane2013-06-041-12/+13
| | | | | | | | Performance timers captured in each transform for all files they process are now collected and arranged per source file in preparation for writing to disk. This revision is the last piece of the initial implementation of performance timer capturing. llvm-svn: 183274
* Adding support for -include/-exclude to cpp11-migrateEdwin Vane2013-04-151-0/+1
| | | | | | | | | | | This commit adds initial support for the -include/-exclude options which are both currently marked as hidden. This support is the first step toward supporting transformations in headers included from source files. Added unittests to test include/exclude support. Author: Jack Yang <jack.yang@intel.com> llvm-svn: 179528
* lib-ified core cpp11-migrate functionality to support unit testsEdwin Vane2013-04-041-0/+11
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
OpenPOWER on IntegriCloud