[clang-tools-extra] r240348 - Update for LLVM API change to return by InputArgList directly (rather than by pointer) from ParseArgs
David Blaikie
dblaikie at gmail.com
Mon Jun 22 15:06:58 PDT 2015
Author: dblaikie
Date: Mon Jun 22 17:06:58 2015
New Revision: 240348
URL: http://llvm.org/viewvc/llvm-project?rev=240348&view=rev
Log:
Update for LLVM API change to return by InputArgList directly (rather than by pointer) from ParseArgs
Modified:
clang-tools-extra/trunk/modularize/Modularize.cpp
Modified: clang-tools-extra/trunk/modularize/Modularize.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/Modularize.cpp?rev=240348&r1=240347&r2=240348&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/Modularize.cpp (original)
+++ clang-tools-extra/trunk/modularize/Modularize.cpp Mon Jun 22 17:06:58 2015
@@ -323,9 +323,9 @@ static std::string findInputFile(const C
E = CLArgs.end();
I != E; ++I)
Argv.push_back(I->c_str());
- std::unique_ptr<InputArgList> Args(Opts->ParseArgs(
- Argv, MissingArgIndex, MissingArgCount, IncludedFlagsBitmask));
- std::vector<std::string> Inputs = Args->getAllArgValues(OPT_INPUT);
+ InputArgList Args = Opts->ParseArgs(Argv, MissingArgIndex, MissingArgCount,
+ IncludedFlagsBitmask);
+ std::vector<std::string> Inputs = Args.getAllArgValues(OPT_INPUT);
return ModularizeUtilities::getCanonicalPath(Inputs.back());
}
More information about the cfe-commits
mailing list