summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-11-14 16:33:29 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-11-14 16:33:29 +0000
commit61f2032d3b292f98e92ebb8108664fbe1a855574 (patch)
tree396c10d614290d264b6b09322c6a0b0dfb2da813 /clang/lib/Frontend/CompilerInvocation.cpp
parentc47c63b2dd77d1679acdfb90c321d32ad92e65aa (diff)
downloadbcm5719-llvm-61f2032d3b292f98e92ebb8108664fbe1a855574.tar.gz
bcm5719-llvm-61f2032d3b292f98e92ebb8108664fbe1a855574.zip
[objcmt] Introduce "objcmt-white-list-dir-path=" option.
This options accepts a path to a directory, collects the filenames of the files it contains, and the migrator will only modify files with the same filename. llvm-svn: 194710
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 009d6ec094b..581d56d4621 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -821,6 +821,8 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
if (Args.hasArg(OPT_objcmt_migrate_all))
Opts.ObjCMTAction |= FrontendOptions::ObjCMT_MigrateDecls;
+ Opts.ObjCMTWhiteListPath = Args.getLastArgValue(OPT_objcmt_white_list_dir_path);
+
if (Opts.ARCMTAction != FrontendOptions::ARCMT_None &&
Opts.ObjCMTAction != FrontendOptions::ObjCMT_None) {
Diags.Report(diag::err_drv_argument_not_allowed_with)
OpenPOWER on IntegriCloud