- Oct 05, 2013
-
-
Edwin Vane authored
The command-line for clang-apply-replacements was being mangled due to an uninitialized variable. gasp! Now fixed. llvm-svn: 192033
-
Edwin Vane authored
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
-
- Oct 01, 2013
-
-
Edwin Vane authored
llvm-svn: 191754
-
- Sep 30, 2013
-
-
Edwin Vane authored
clang-apply-replacements unittest Makefile wasn't linking in TransformUtils. llvm-svn: 191669
-
Edwin Vane authored
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
-
- Sep 26, 2013
-
-
Edwin Vane authored
Build files for unit tests hadn't been updated yet. llvm-svn: 191451
-
Edwin Vane authored
The LoopConvert transform makes use of data structures it builds up over the course of transforming a TU. Until now, these data structures weren't being cleared out before the next TU was being processed. Fixes PR17253. Differential Revision: http://llvm-reviews.chandlerc.com/D175 llvm-svn: 191448
-
- Sep 24, 2013
-
-
Edwin Vane authored
Options that leak from other parts of LLVM are now pruned out of -help. -version output is specific to clang-apply-replacements now. Differential Revision: http://llvm-reviews.chandlerc.com/D1747 llvm-svn: 191322
-
Ariel J. Bernal authored
Use getNumOccurrences instead of usina a default constant string. llvm-svn: 191308
-
- Sep 23, 2013
-
-
Ariel J. Bernal authored
Fixed test that was previously failing due to concurrency. llvm-svn: 191215
-
Ariel J. Bernal authored
This patch also fixes the case where a compilation database is autodetected from source but the file itself cannot be found in the compilation database, it then ignores the compilation database and transforms the file with c++11 support. llvm-svn: 191213
-
John Thompson authored
llvm-svn: 191211
-
John Thompson authored
llvm-svn: 191201
-
- Sep 20, 2013
-
-
John Thompson authored
llvm-svn: 191093
-
John Thompson authored
llvm-svn: 191092
-
John Thompson authored
llvm-svn: 191091
-
- Sep 19, 2013
-
-
Alexey Samsonov authored
llvm-svn: 190992
-
- Sep 18, 2013
-
-
John Thompson authored
llvm-svn: 190950
-
- Sep 16, 2013
-
-
Ariel J. Bernal authored
remove_if doesn't alter the container properties. Need to use erase to remove the elements past the new end. llvm-svn: 190803
-
- Sep 12, 2013
-
-
Ariel J. Bernal authored
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
-
Ariel J. Bernal authored
llvm-svn: 190607
-
- Sep 11, 2013
-
-
NAKAMURA Takumi authored
clang-tools-extra/test/clang-modernize/HeaderReplacements/main.cpp: Tweak sed(1) to let paths with a driveletter quoted in *_expected.yaml. llvm-svn: 190517
-
Benjamin Kramer authored
llvm-svn: 190511
-
Rui Ueyama authored
llvm-svn: 190489
-
Rui Ueyama authored
llvm-svn: 190487
-
- Sep 07, 2013
-
-
Guillaume Papin authored
- Limit the transform to const-ref and non-const value parameters only. - Do not generate a replacement when the type is already a value. See CM-139 for the bugs corresponding to this issue. llvm-svn: 190212
-
- Sep 06, 2013
-
-
Edwin Vane authored
* Removing sphinx warnings about docs not in a toctree. * Adding more links to cpp11-migrate redirect docs. llvm-svn: 190195
-
Edwin Vane authored
-include/-exclude and friends have been marked as hidden options until this point. This is no longer necessary. Update the docs to describe their effect. Differential Revision: http://llvm-reviews.chandlerc.com/D1621 llvm-svn: 190194
-
Edwin Vane authored
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
-
- Sep 05, 2013
-
-
Manuel Klimek authored
If transformations lead to changes that do not need reformatting, the current strategy will not write those files. With this patch, we just update the overall state with the changes due to reformatting, and then write out everything. llvm-svn: 190050
-
- Sep 04, 2013
-
-
John Thompson authored
llvm-svn: 189984
-
John Thompson authored
llvm-svn: 189983
-
Chandler Carruth authored
llvm-svn: 189974
-
Chandler Carruth authored
llvm-svn: 189973
-
John Thompson authored
llvm-svn: 189968
-
Chandler Carruth authored
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
-
Chandler Carruth authored
;] Update them. Sorry for the breakage. llvm-svn: 189963
-
Chandler Carruth authored
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
-
Bob Wilson authored
The NoProblemsDependencies.modularize test is failing on many buildbots. I have also reverted the change in 189904 to disable that test for MSVC. llvm-svn: 189957
-
NAKAMURA Takumi authored
llvm-svn: 189904
-