diff options
author | Edwin Vane <edwin.vane@intel.com> | 2013-05-02 19:02:02 +0000 |
---|---|---|
committer | Edwin Vane <edwin.vane@intel.com> | 2013-05-02 19:02:02 +0000 |
commit | c049c929333be7c0b48fe89bfc786e8950d496e9 (patch) | |
tree | b9553d75354bd5a5725d72c1f28773300cd9d60e /clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp | |
parent | a9a50ffb02f13aa0516761d157a9e1fae38fa971 (diff) | |
download | bcm5719-llvm-c049c929333be7c0b48fe89bfc786e8950d496e9.tar.gz bcm5719-llvm-c049c929333be7c0b48fe89bfc786e8950d496e9.zip |
Add support to read include/exclude paths from file
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
Diffstat (limited to 'clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp')
-rw-r--r-- | clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp b/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp index 5b0661a9380..d71626ce828 100644 --- a/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp +++ b/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp @@ -54,12 +54,20 @@ SummaryMode("summary", cl::desc("Print transform summary"), // options are implemented in the tool. static cl::opt<std::string> IncludePaths("include", cl::Hidden, - cl::desc("Comma seperated list of filepaths to consider to be " + cl::desc("Comma seperated list of paths to consider to be " "transformed")); static cl::opt<std::string> ExcludePaths("exclude", cl::Hidden, - cl::desc("Comma seperated list of filepaths that can not " + cl::desc("Comma seperated list of paths that can not " "be transformed")); +static cl::opt<std::string> +IncludeFromFile("include-from", cl::Hidden, cl::value_desc("filename"), + cl::desc("File containing a list of paths to consider to " + "be transformed")); +static cl::opt<std::string> +ExcludeFromFile("exclude-from", cl::Hidden, cl::value_desc("filename"), + cl::desc("File containing a list of paths that can not be " + "transforms")); class EndSyntaxArgumentsAdjuster : public ArgumentsAdjuster { CommandLineArguments Adjust(const CommandLineArguments &Args) { |