[PATCH] D33350: [clangd] Switch to incomplete translation units

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 22 05:49:28 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL303547: [clangd] Switch to incomplete translation units (authored by krasimir).

Changed prior to commit:
  https://reviews.llvm.org/D33350?vs=99535&id=99749#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D33350

Files:
  clang-tools-extra/trunk/clangd/ClangdUnit.cpp


Index: clang-tools-extra/trunk/clangd/ClangdUnit.cpp
===================================================================
--- clang-tools-extra/trunk/clangd/ClangdUnit.cpp
+++ clang-tools-extra/trunk/clangd/ClangdUnit.cpp
@@ -45,7 +45,7 @@
       ArgP, ArgP + ArgStrs.size(), PCHs, Diags, ResourceDir,
       /*OnlyLocalDecls=*/false, /*CaptureDiagnostics=*/true, RemappedSource,
       /*RemappedFilesKeepOriginalName=*/true,
-      /*PrecompilePreambleAfterNParses=*/1, /*TUKind=*/TU_Complete,
+      /*PrecompilePreambleAfterNParses=*/1, /*TUKind=*/TU_Prefix,
       /*CacheCodeCompletionResults=*/true,
       /*IncludeBriefCommentsInCodeCompletion=*/true,
       /*AllowPCHWithCompilerErrors=*/true));


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33350.99749.patch
Type: text/x-patch
Size: 706 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170522/ad2cb5fa/attachment.bin>


More information about the cfe-commits mailing list