[PATCH] D97417: [clangd] use a compatible preamble for the first AST built
Quentin Chateau via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 3 14:29:56 PST 2021
qchateau updated this revision to Diff 327922.
qchateau added a comment.
rebase on main, fix formatting
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97417/new/
https://reviews.llvm.org/D97417
Files:
clang-tools-extra/clangd/TUScheduler.cpp
Index: clang-tools-extra/clangd/TUScheduler.cpp
===================================================================
--- clang-tools-extra/clangd/TUScheduler.cpp
+++ clang-tools-extra/clangd/TUScheduler.cpp
@@ -609,8 +609,8 @@
ASTWorker(PathRef FileName, const GlobalCompilationDatabase &CDB,
TUScheduler::ASTCache &LRUCache,
TUScheduler::HeaderIncluderCache &HeaderIncluders,
- TUScheduler::PreambleStore &Preambles,
- Semaphore &Barrier, bool RunSync, const TUScheduler::Options &Opts,
+ TUScheduler::PreambleStore &Preambles, Semaphore &Barrier,
+ bool RunSync, const TUScheduler::Options &Opts,
ParsingCallbacks &Callbacks);
public:
@@ -623,9 +623,9 @@
create(PathRef FileName, const GlobalCompilationDatabase &CDB,
TUScheduler::ASTCache &IdleASTs,
TUScheduler::HeaderIncluderCache &HeaderIncluders,
- TUScheduler::PreambleStore &Preambles,
- AsyncTaskRunner *Tasks, Semaphore &Barrier,
- const TUScheduler::Options &Opts, ParsingCallbacks &Callbacks);
+ TUScheduler::PreambleStore &Preambles, AsyncTaskRunner *Tasks,
+ Semaphore &Barrier, const TUScheduler::Options &Opts,
+ ParsingCallbacks &Callbacks);
~ASTWorker();
void update(ParseInputs Inputs, WantDiagnostics, bool ContentChanged);
@@ -844,11 +844,11 @@
ASTWorker::ASTWorker(PathRef FileName, const GlobalCompilationDatabase &CDB,
TUScheduler::ASTCache &LRUCache,
TUScheduler::HeaderIncluderCache &HeaderIncluders,
-TUScheduler::PreambleStore &Preambles,
- Semaphore &Barrier, bool RunSync,
- const TUScheduler::Options &Opts,
+ TUScheduler::PreambleStore &Preambles, Semaphore &Barrier,
+ bool RunSync, const TUScheduler::Options &Opts,
ParsingCallbacks &Callbacks)
- : IdleASTs(LRUCache), HeaderIncluders(HeaderIncluders), Preambles(Preambles), RunSync(RunSync),
+ : IdleASTs(LRUCache), HeaderIncluders(HeaderIncluders),
+ Preambles(Preambles), RunSync(RunSync),
UpdateDebounce(Opts.UpdateDebounce), FileName(FileName),
ContextProvider(Opts.ContextProvider), CDB(CDB), Callbacks(Callbacks),
Barrier(Barrier), Done(false), Status(FileName, Callbacks),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97417.327922.patch
Type: text/x-patch
Size: 2362 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210303/47a15cd4/attachment.bin>
More information about the cfe-commits
mailing list