mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-18 06:31:15 +00:00
Take unsaved_files by reference
This commit is contained in:
parent
3058e15460
commit
6e56d97d97
@ -72,7 +72,7 @@ std::unique_ptr<ClangTranslationUnit> ClangTranslationUnit::Create(
|
|||||||
ClangIndex* index,
|
ClangIndex* index,
|
||||||
const std::string& filepath,
|
const std::string& filepath,
|
||||||
const std::vector<std::string>& arguments,
|
const std::vector<std::string>& arguments,
|
||||||
std::vector<CXUnsavedFile> unsaved_files,
|
std::vector<CXUnsavedFile>& unsaved_files,
|
||||||
unsigned flags) {
|
unsigned flags) {
|
||||||
std::vector<const char*> args;
|
std::vector<const char*> args;
|
||||||
for (const std::string& a : arguments)
|
for (const std::string& a : arguments)
|
||||||
|
@ -17,7 +17,7 @@ struct ClangTranslationUnit {
|
|||||||
ClangIndex* index,
|
ClangIndex* index,
|
||||||
const std::string& filepath,
|
const std::string& filepath,
|
||||||
const std::vector<std::string>& arguments,
|
const std::vector<std::string>& arguments,
|
||||||
std::vector<CXUnsavedFile> unsaved_files,
|
std::vector<CXUnsavedFile>& unsaved_files,
|
||||||
unsigned flags);
|
unsigned flags);
|
||||||
|
|
||||||
static std::unique_ptr<ClangTranslationUnit> Reparse(
|
static std::unique_ptr<ClangTranslationUnit> Reparse(
|
||||||
|
Loading…
Reference in New Issue
Block a user