- Jun 19, 2013
-
-
John Thompson authored
llvm-svn: 184347
-
Edwin Vane authored
llvm-svn: 184326
-
Edwin Vane authored
sys::fs::make_absolute was turning '.' into '<path>/.' which broke prefix comparison logic. Stripping these extra chars fixes the problem. llvm-svn: 184322
-
Manuel Klimek authored
llvm-svn: 184314
-
NAKAMURA Takumi authored
llvm-svn: 184285
-
- Jun 18, 2013
-
-
John Thompson authored
llvm-svn: 184221
-
Edwin Vane authored
Transforms will now make changes to headers if header modifications have been enabled. FIXME: Only UseNullptr contains a cursory header modification test. Other transforms should have them too. llvm-svn: 184197
-
Edwin Vane authored
To make it possible for replacements made to headers as part of transforming one translation unit to not be visible to the transform of other translation units, Transform now handles replacement application as part of its end-of-source handling. Several things were simplified as a result: - The duplicated code in every transform for applying replacements is now gone and replaced with one location in Transform. - RefactoringTool is no longer used since Transform houses the Replacements structure. - RewriterContainer is now a private implementation detail of Transform (also renamed to RewriterManager since its behaviour is slightly different now with respect to lifetime of objects). - There's now no distinction between input and output file state. Misc notes: - Interface changes reflected in unit tests. - Replacements for files other than the main file are assumed to be for headers and stored as such. llvm-svn: 184194
-
- Jun 17, 2013
-
-
Edwin Vane authored
To better support per-translation unit replacements, any real work is being moved out of ActionFactory and into Transform. In this revision, that means file override application. For simplification, Transform no longer inherits from SourceFileCallbacks. TransformTest required updating as a result. llvm-svn: 184098
-
- Jun 14, 2013
-
-
Rafael Espindola authored
This reverts commit r184004. This test has some dependency on the behavior of the old function on windows. I added it back to llvm for now. llvm-svn: 184010
-
Rafael Espindola authored
llvm-svn: 184004
-
Reid Kleckner authored
r183989 added a dependency on LLVMOption in clangFrontend. llvm-svn: 183990
-
Rafael Espindola authored
llvm-svn: 183983
-
Edwin Vane authored
Adhering to LLVM's ReST style for section markup. llvm-svn: 183981
-
Sylvestre Ledru authored
llvm-svn: 183976
-
- Jun 13, 2013
-
-
Edwin Vane authored
isFileIncluded() needed to be marked const. llvm-svn: 183918
-
Edwin Vane authored
File override structures now contain per-source overrides for headers. For now, modified headers are written to disk when the Migrator is done. This is only temporary behaviour since we can expect headers to be changed by migrating multiple source files. The changes need to be merged after all migrations are complete. llvm-svn: 183917
-
Edwin Vane authored
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
-
- Jun 12, 2013
-
-
Edwin Vane authored
Moving RewriteContainer's constructor impl to Transform.cpp to reduce clutter. More things will soon be added to this header. llvm-svn: 183856
-
Edwin Vane authored
Next step toward supporting migrating headers. Instead of using ClangTool's ability to override all files at once, use a custom FrontendAction and override only the source (and eventually headers) the action is about to parse. Use of newFrontendActionFactory() is replaced with a new factory maker provided by Transform. llvm-svn: 183855
-
- Jun 11, 2013
-
-
Rafael Espindola authored
llvm-svn: 183785
-
Rafael Espindola authored
llvm-svn: 183784
-
- Jun 06, 2013
-
-
Edwin Vane authored
First step toward supporting header modifications: adding a flag that turns on such modifications. Eventually header modifications will be on by default but until all the kinks can be worked out, they must be explicitly enabled. llvm-svn: 183444
-
Edwin Vane authored
Refactored how global options are passed to Transforms to avoid widespread changes every time a new global option is added. Tests updated to reflect new interface. llvm-svn: 183443
-
Edwin Vane authored
* Documented new command-line options. * Moved usage to a new page. * Usage now split into general options and transform-related options. * Main Migrator page now contains getting started and getting involved information. * Also included a JIRA issue collector button for logging bugs. llvm-svn: 183417
-
- Jun 05, 2013
-
-
Edwin Vane authored
r183274 accidentally added windows line endings to changed lines. Changing them back. llvm-svn: 183322
-
Edwin Vane authored
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
-
- Jun 03, 2013
-
-
Edwin Vane authored
Getting PIDs on Windows is broken. Proper fix is simple but requires testing so just disabling PID-based file names for now. llvm-svn: 183154
-
Ariel J. Bernal authored
-Added command line option -report-times to enable or disable the output. The same option can be used to specify the output directory. -Write timing data to a unique file in disk using json format. llvm-svn: 183142
-
- May 31, 2013
-
-
Edwin Vane authored
Added a new option -override-macros which causes the, the add-override transform to detect macros that expand to 'override' (like LLVM_OVERRIDE) and use these macros instead of the override keyword directly. llvm-svn: 183001
-
- May 30, 2013
-
-
Bill Wendling authored
llvm-svn: 182959
-
Edwin Vane authored
llvm-svn: 182957
-
Edwin Vane authored
Using updated form of newFrontendActionFactory(), Transforms now automatically measure, if requested, how long it takes to apply a MatchFinder to a source file. Other per-transform overhead, e.g. applying replacements, is not currently measured. This behaviour is disabled for now and soon will be connected to a new command line arg. llvm-svn: 182942
-
- May 27, 2013
-
-
Ariel J. Bernal authored
UseAuto used to replace declarion lists with new expressons where some variable were not initialized with new. This fix checks that every DeclStmt has a VarDecl with an initializer and it also ensures that all declarations have the same type. Added tests for multiple declarations and for typedefs. llvm-svn: 182736
-
- May 17, 2013
-
-
Benjamin Kramer authored
UseAutoActions.cpp:48:17: error: redefinition of 'E' with a different type. llvm-svn: 182119
-
Ariel J. Bernal authored
variables. UseAuto used to match initialized variable declarations independently of whether they were defined in a declaration list or as a single declaration. Now it matches declaration statements where every variable declaration is initialized. llvm-svn: 182114
-
- May 16, 2013
-
-
Edwin Vane authored
The recent improvement to the Use Nullptr Transform for macro arg expansions wasn't testing that only allowed NULL macros used in macro args can be transformed. This revision replaces a TODO to that effect. Fixes PR15955. llvm-svn: 182014
-
Edwin Vane authored
Several free functions related to macro arg testing are being moved into CastSequenceVisitor to facilitate upcoming fix. llvm-svn: 182013
-
- May 14, 2013
-
-
Edwin Vane authored
This commit fixes a "FIXME" in the add-override transform. ' override' was misplaced when a comment was between the function body and the end of the 'prototype'. It also remove duplicated check for the main file from the last commit (and fixes the typo in the comment above). Author: Guillaume Papin <guillaume.papin@epitech.eu> llvm-svn: 181806
-
- May 10, 2013
-
-
Edwin Vane authored
This patch fixes different issues: - override is not added in template 'contexts' (this will be further improved to handle safe situations, a test for this has been written already) - the main file is now checked before the modifications are applied - override is not applied now when dealing with pure methods since it was misplaced (ignoring it isn't the perfect solution but it seems difficult to find the location just before the pure-specifier) Fixes PR15827 Author: Guillaume Papin <guillaume.papin@epitech.eu> llvm-svn: 181596
-