summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/cpp11-migrate/Core
Commit message (Collapse)AuthorAgeFilesLines
...
* cpp11-migrate: const-correcting IncludeExcludeInfoEdwin Vane2013-06-132-6/+6
| | | | | | isFileIncluded() needed to be marked const. llvm-svn: 183918
* cpp11-migrate: Add headers to file override informationEdwin Vane2013-06-132-0/+15
| | | | | | | | | | | 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
* cpp11-migrate: Replace file override containerEdwin Vane2013-06-137-35/+182
| | | | | | | | | | | | 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: Decluttering Transform.hEdwin Vane2013-06-122-17/+19
| | | | | | | Moving RewriteContainer's constructor impl to Transform.cpp to reduce clutter. More things will soon be added to this header. llvm-svn: 183856
* cpp11-migrate: New mechanism for overriding file contentsEdwin Vane2013-06-122-0/+84
| | | | | | | | | | | 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
* Fix build after clang change r183781.Rafael Espindola2013-06-111-0/+1
| | | | llvm-svn: 183784
* cpp11-migrate: Add EnableHeaderModification flagEdwin Vane2013-06-061-0/+9
| | | | | | | | 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
* cpp11-migrate: Refactor how global options are passed to TransformsEdwin Vane2013-06-064-20/+33
| | | | | | | | | 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
* cpp11-migrate: Eliminate windows line endingsEdwin Vane2013-06-055-453/+453
| | | | | | | 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-045-284/+453
| | | | | | | | 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
* cpp11-migrate: Transforms collect timing data.Edwin Vane2013-05-304-8/+66
| | | | | | | | | | 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
* Add support to read include/exclude paths from fileEdwin Vane2013-05-022-12/+60
| | | | | | | | | | | | | | Files containing the list of paths to be included and excluded can now be specified through -include-from=<filename> and -exclude-from=<filename> command line options in cpp11-migrate. Added support for data files for cpp11-migrate unittests. The Cpp11MigrateTests executable just requires a DATADIR environment variable to be set which specifies the directory where data files are stored. This is handled automatically when using LIT. Author: Jack Yang <jack.yang@intel.com>, Edwin Vane <edwin.vane@intel.com> llvm-svn: 180939
* Adding support for -include/-exclude to cpp11-migrateEdwin Vane2013-04-153-0/+132
| | | | | | | | | | | 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
* Fix symbol dependency errors introduced with libmigrateCoreEdwin Vane2013-04-052-31/+16
| | | | | | | | | | With cpp11-migrate core functionality moved to a separate library (for enabling unit tests) this library contained code that referenced symbols that are still in the main binary. On some platforms, the shared library build broke as a result. This revision fixes the dependency problem and is safe for the eventual lib-ification of the transforms as well. llvm-svn: 178901
* lib-ified core cpp11-migrate functionality to support unit testsEdwin Vane2013-04-046-0/+376
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