/// 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());
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.
// 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);
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) {}