Exit early args are invalid

Add batch-code-compelte test
This commit is contained in:
Ellie Shin
2021-12-10 17:14:16 -08:00
parent 0fc4fe2e67
commit 4ad3a551b4
4 changed files with 9 additions and 5 deletions

View File

@@ -262,9 +262,9 @@ void CompilerInvocation::setSDKPath(const std::string &Path) {
updateRuntimeLibraryPaths(SearchPathOpts, LangOpts.Target);
}
void CompilerInvocation::setModuleAliasMap(std::vector<std::string> args,
bool CompilerInvocation::setModuleAliasMap(std::vector<std::string> args,
DiagnosticEngine &diags) {
ModuleAliasesConverter::computeModuleAliases(args, FrontendOpts, diags);
return ModuleAliasesConverter::computeModuleAliases(args, FrontendOpts, diags);
}
static bool ParseFrontendArgs(