summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2018-07-30 11:46:25 +0000
committerIlya Biryukov <ibiryukov@google.com>2018-07-30 11:46:25 +0000
commitba5e25cf78b01b5319e5fd23107de97373bfa176 (patch)
tree2d310d11f4fb82672cbc2a036f963ba1a5b07f97
parent01139d6cb7e3873dc60cc786590acfb4dd9ea791 (diff)
[clangd] Fix a comment. NFC
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@338241 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--clangd/TUScheduler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clangd/TUScheduler.cpp b/clangd/TUScheduler.cpp
index b5305341..feacd358 100644
--- a/clangd/TUScheduler.cpp
+++ b/clangd/TUScheduler.cpp
@@ -367,11 +367,11 @@ void ASTWorker::update(
PreambleWasBuilt.notify();
if (CanReuseAST) {
- // Take a shortcut and don't build the AST, neither the inputs nor the
+ // Take a shortcut and don't build the AST if neither the inputs nor the
// preamble have changed.
// Note that we do not report the diagnostics, since they should not have
// changed either. All the clients should handle the lack of OnUpdated()
- // call anyway, to handle empty result from buildAST.
+ // call anyway to handle empty result from buildAST.
// FIXME(ibiryukov): the AST could actually change if non-preamble
// includes changed, but we choose to ignore it.
// FIXME(ibiryukov): should we refresh the cache in IdleASTs for the