Home
last modified time | relevance | path

Searched refs:DraftMgr (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/
DClangdLSPServer.cpp135 llvm::Error validateEdits(const DraftStore &DraftMgr, const FileEdits &FE) { in validateEdits() argument
139 if (auto Draft = DraftMgr.getDraft(It.first())) { in validateEdits()
667 auto Version = DraftMgr.addDraft(File, Params.textDocument.version, Contents); in onDocumentDidOpen()
680 llvm::Expected<DraftStore::Draft> Draft = DraftMgr.updateDraft( in onDocumentDidChange()
686 DraftMgr.removeDraft(File); in onDocumentDidChange()
744 auto Code = DraftMgr.getDraft(Params.tweakArgs->file.file()); in onCommand()
767 if (auto Err = validateEdits(DraftMgr, R->ApplyEdits)) in onCommand()
823 if (!DraftMgr.getDraft(File)) in onRename()
832 if (auto Err = validateEdits(DraftMgr, R->GlobalChanges)) in onRename()
847 DraftMgr.removeDraft(File); in onDocumentDidClose()
[all …]
DClangdLSPServer.h304 DraftStore DraftMgr; variable