[interface-gen] Rename AreSwiftArgs -> UsingSwiftArgs throughout

This commit is contained in:
Nathan Hawes
2017-07-13 15:37:17 -07:00
parent 3de0ea7e1b
commit ecfa9ebfca
10 changed files with 18 additions and 18 deletions

View File

@@ -801,7 +801,7 @@ void SwiftLangSupport::editorOpenHeaderInterface(EditorConsumer &Consumer,
StringRef Name,
StringRef HeaderName,
ArrayRef<const char *> Args,
bool AreSwiftArgs,
bool UsingSwiftArgs,
bool SynthesizedExtensions,
Optional<unsigned> swiftVersion) {
CompilerInstance CI;
@@ -812,14 +812,14 @@ void SwiftLangSupport::editorOpenHeaderInterface(EditorConsumer &Consumer,
CompilerInvocation Invocation;
std::string Error;
ArrayRef<const char *> SwiftArgs = AreSwiftArgs ? Args : llvm::None;
ArrayRef<const char *> SwiftArgs = UsingSwiftArgs ? Args : llvm::None;
if (getASTManager().initCompilerInvocation(Invocation, SwiftArgs, CI.getDiags(),
StringRef(), Error)) {
Consumer.handleRequestError(Error.c_str());
return;
}
if (!AreSwiftArgs && initInvocationByClangArguments(Args, Invocation, Error)) {
if (!UsingSwiftArgs && initInvocationByClangArguments(Args, Invocation, Error)) {
Consumer.handleRequestError(Error.c_str());
return;
}