diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-11-14 16:33:29 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-11-14 16:33:29 +0000 |
commit | 61f2032d3b292f98e92ebb8108664fbe1a855574 (patch) | |
tree | 396c10d614290d264b6b09322c6a0b0dfb2da813 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | c47c63b2dd77d1679acdfb90c321d32ad92e65aa (diff) | |
download | bcm5719-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.cpp | 2 |
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) |