Skip to content

Commit e091bab

Browse files
authored
Merge pull request #3341 from apple/lldb-Pass-extra-clang-args-by-const-ref-NFC
[lldb] Pass extra clang args by const-ref (NFC)
2 parents d6ba08f + cbaccb0 commit e091bab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ void SwiftASTContext::AddExtraClangArgs(const std::vector<std::string>& source,
15021502
}
15031503
}
15041504

1505-
void SwiftASTContext::AddExtraClangArgs(std::vector<std::string> ExtraArgs) {
1505+
void SwiftASTContext::AddExtraClangArgs(const std::vector<std::string> &ExtraArgs) {
15061506
swift::ClangImporterOptions &importer_options = GetClangImporterOptions();
15071507
AddExtraClangArgs(ExtraArgs, importer_options.ExtraArgs);
15081508
}

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class SwiftASTContext : public TypeSystemSwift {
242242

243243
/// Add a list of Clang arguments to the ClangImporter options and
244244
/// apply the working directory to any relative paths.
245-
void AddExtraClangArgs(std::vector<std::string> ExtraArgs);
245+
void AddExtraClangArgs(const std::vector<std::string> &ExtraArgs);
246246
static void AddExtraClangArgs(const std::vector<std::string>& source,
247247
std::vector<std::string>& dest);
248248

0 commit comments

Comments
 (0)