[clangd] Fix typo. NFC

llvm-svn: 341452
This commit is contained in:
Fangrui Song 2018-09-05 08:01:37 +00:00
parent d85264bf53
commit 445bdd171f
4 changed files with 4 additions and 4 deletions

View File

@ -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());

View File

@ -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.

View File

@ -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);

View File

@ -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) {}