diff options
Diffstat (limited to 'clang-tools-extra/clangd/Diagnostics.h')
-rw-r--r-- | clang-tools-extra/clangd/Diagnostics.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/Diagnostics.h b/clang-tools-extra/clangd/Diagnostics.h index 0cdaeac161e..6318e88fc4e 100644 --- a/clang-tools-extra/clangd/Diagnostics.h +++ b/clang-tools-extra/clangd/Diagnostics.h @@ -78,9 +78,12 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Diag &D); /// file do not have a corresponding LSP diagnostic, but can still be included /// as part of their main diagnostic's message. void toLSPDiags( - const Diag &D, + const Diag &D, const URIForFile &File, const ClangdDiagnosticOptions &Opts, llvm::function_ref<void(clangd::Diagnostic, llvm::ArrayRef<Fix>)> OutFn); +/// Convert from Fix to LSP CodeAction. +CodeAction toCodeAction(const Fix &D, const URIForFile &File); + /// Convert from clang diagnostic level to LSP severity. int getSeverity(DiagnosticsEngine::Level L); |