Skip to content

Commit cbaccb0

Browse files
committed
[lldb] Pass extra clang args by const-ref (NFC)
1 parent b068ac5 commit cbaccb0

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
@@ -1499,7 +1499,7 @@ void SwiftASTContext::AddExtraClangArgs(const std::vector<std::string>& source,
14991499
}
15001500
}
15011501

1502-
void SwiftASTContext::AddExtraClangArgs(std::vector<std::string> ExtraArgs) {
1502+
void SwiftASTContext::AddExtraClangArgs(const std::vector<std::string> &ExtraArgs) {
15031503
swift::ClangImporterOptions &importer_options = GetClangImporterOptions();
15041504
AddExtraClangArgs(ExtraArgs, importer_options.ExtraArgs);
15051505
}

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)