forked from OSchip/llvm-project
[clangd] Switch to incomplete translation units
Summary: This speeds up code completion. All the cool kids (ycmd) are doing it. Reviewers: bkramer, ilya-biryukov Reviewed By: bkramer Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D33350 llvm-svn: 303547
This commit is contained in:
parent
2c87f5341d
commit
d814533851
|
@ -45,7 +45,7 @@ ClangdUnit::ClangdUnit(PathRef FileName, StringRef Contents,
|
||||||
ArgP, ArgP + ArgStrs.size(), PCHs, Diags, ResourceDir,
|
ArgP, ArgP + ArgStrs.size(), PCHs, Diags, ResourceDir,
|
||||||
/*OnlyLocalDecls=*/false, /*CaptureDiagnostics=*/true, RemappedSource,
|
/*OnlyLocalDecls=*/false, /*CaptureDiagnostics=*/true, RemappedSource,
|
||||||
/*RemappedFilesKeepOriginalName=*/true,
|
/*RemappedFilesKeepOriginalName=*/true,
|
||||||
/*PrecompilePreambleAfterNParses=*/1, /*TUKind=*/TU_Complete,
|
/*PrecompilePreambleAfterNParses=*/1, /*TUKind=*/TU_Prefix,
|
||||||
/*CacheCodeCompletionResults=*/true,
|
/*CacheCodeCompletionResults=*/true,
|
||||||
/*IncludeBriefCommentsInCodeCompletion=*/true,
|
/*IncludeBriefCommentsInCodeCompletion=*/true,
|
||||||
/*AllowPCHWithCompilerErrors=*/true));
|
/*AllowPCHWithCompilerErrors=*/true));
|
||||||
|
|
Loading…
Reference in New Issue