summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/clangd/Cancellation.h2
-rw-r--r--clang-tools-extra/clangd/CodeComplete.cpp2
-rw-r--r--clang-tools-extra/clangd/FindSymbols.cpp2
-rw-r--r--clang-tools-extra/clangd/JSONRPCDispatcher.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/clangd/Cancellation.h b/clang-tools-extra/clangd/Cancellation.h
index d7868e75603..58f845691df 100644
--- a/clang-tools-extra/clangd/Cancellation.h
+++ b/clang-tools-extra/clangd/Cancellation.h
@@ -93,7 +93,7 @@ public:
/// extra lookups in the Context.
bool isCancelled() const { return CT; }
- /// Creates a task handle that can be used by an asyn task to check for
+ /// Creates a task handle that can be used by an async task to check for
/// information that can change during it's runtime, like Cancellation.
static std::shared_ptr<Task> createHandle() {
return std::shared_ptr<Task>(new Task());
diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp
index 89e8acbac92..73357d8db4c 100644
--- a/clang-tools-extra/clangd/CodeComplete.cpp
+++ b/clang-tools-extra/clangd/CodeComplete.cpp
@@ -1629,7 +1629,7 @@ CompletionItem CodeCompletion::render(const CodeCompleteOptions &Opts) const {
LSP.sortText = sortText(Score.Total, Name);
LSP.filterText = Name;
LSP.textEdit = {CompletionTokenRange, RequiredQualifier + Name};
- // Merge continious additionalTextEdits into main edit. The main motivation
+ // Merge continuous additionalTextEdits into main edit. The main motivation
// behind this is to help LSP clients, it seems most of them are confused when
// they are provided with additionalTextEdits that are consecutive to main
// edit.
diff --git a/clang-tools-extra/clangd/FindSymbols.cpp b/clang-tools-extra/clangd/FindSymbols.cpp
index cc7f084f26a..b808e374eae 100644
--- a/clang-tools-extra/clangd/FindSymbols.cpp
+++ b/clang-tools-extra/clangd/FindSymbols.cpp
@@ -226,7 +226,7 @@ public:
// We should be only be looking at "local" decls in the main file.
if (!SourceMgr.isWrittenInMainFile(NameLoc)) {
// Even thought we are visiting only local (non-preamble) decls,
- // we can get here when in the presense of "extern" decls.
+ // we can get here when in the presence of "extern" decls.
return true;
}
const NamedDecl *ND = llvm::dyn_cast<NamedDecl>(ASTNode.OrigD);
diff --git a/clang-tools-extra/clangd/JSONRPCDispatcher.cpp b/clang-tools-extra/clangd/JSONRPCDispatcher.cpp
index 9dea83ae896..a3dd9ac4a49 100644
--- a/clang-tools-extra/clangd/JSONRPCDispatcher.cpp
+++ b/clang-tools-extra/clangd/JSONRPCDispatcher.cpp
@@ -28,7 +28,7 @@ namespace {
static Key<json::Value> RequestID;
static Key<JSONOutput *> RequestOut;
-// When tracing, we trace a request and attach the repsonse in reply().
+// When tracing, we trace a request and attach the response in reply().
// Because the Span isn't available, we find the current request using Context.
class RequestSpan {
RequestSpan(llvm::json::Object *Args) : Args(Args) {}
OpenPOWER on IntegriCloud