diff options
Diffstat (limited to 'clang-tools-extra/clangd/TUScheduler.h')
-rw-r--r-- | clang-tools-extra/clangd/TUScheduler.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang-tools-extra/clangd/TUScheduler.h b/clang-tools-extra/clangd/TUScheduler.h index 4943d197bc5..74973d0a634 100644 --- a/clang-tools-extra/clangd/TUScheduler.h +++ b/clang-tools-extra/clangd/TUScheduler.h @@ -142,13 +142,14 @@ public: /// contain files that currently run something over their AST. std::vector<Path> getFilesWithCachedAST() const; - /// Schedule an update for \p File. Adds \p File to a list of tracked files if - /// \p File was not part of it before. The compile command in \p Inputs is - /// ignored; worker queries CDB to get the actual compile command. + /// Schedule an update for \p File. + /// The compile command in \p Inputs is ignored; worker queries CDB to get + /// the actual compile command. /// If diagnostics are requested (Yes), and the context is cancelled /// before they are prepared, they may be skipped if eventual-consistency /// permits it (i.e. WantDiagnostics is downgraded to Auto). - void update(PathRef File, ParseInputs Inputs, WantDiagnostics WD); + /// Returns true if the file was not previously tracked. + bool update(PathRef File, ParseInputs Inputs, WantDiagnostics WD); /// Remove \p File from the list of tracked files and schedule removal of its /// resources. Pending diagnostics for closed files may not be delivered, even |