Take unsaved_files by reference

This commit is contained in:
Jacob Dufault 2018-01-17 17:52:35 -08:00
parent 3058e15460
commit 6e56d97d97
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ std::unique_ptr<ClangTranslationUnit> ClangTranslationUnit::Create(
ClangIndex* index,
const std::string& filepath,
const std::vector<std::string>& arguments,
std::vector<CXUnsavedFile> unsaved_files,
std::vector<CXUnsavedFile>& unsaved_files,
unsigned flags) {
std::vector<const char*> args;
for (const std::string& a : arguments)

View File

@ -17,7 +17,7 @@ struct ClangTranslationUnit {
ClangIndex* index,
const std::string& filepath,
const std::vector<std::string>& arguments,
std::vector<CXUnsavedFile> unsaved_files,
std::vector<CXUnsavedFile>& unsaved_files,
unsigned flags);
static std::unique_ptr<ClangTranslationUnit> Reparse(