#include "Protocol.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/SourceLocation.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/SourceMgr.h"
#include <cassert>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
Go to the source code of this file.
|
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &OS, const DiagBase &D) |
|
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &OS, const Fix &F) |
|
llvm::raw_ostream & | clang::clangd::operator<< (llvm::raw_ostream &OS, const Diag &D) |
|
Diag | clang::clangd::toDiag (const llvm::SMDiagnostic &D, Diag::DiagSource Source) |
|
void | clang::clangd::toLSPDiags (const Diag &D, const URIForFile &File, const ClangdDiagnosticOptions &Opts, llvm::function_ref< void(clangd::Diagnostic, llvm::ArrayRef< Fix >)> OutFn) |
| Conversion to LSP diagnostics.
|
|
int | clang::clangd::getSeverity (DiagnosticsEngine::Level L) |
| Convert from clang diagnostic level to LSP severity.
|
|
std::optional< std::string > | clang::clangd::getDiagnosticDocURI (Diag::DiagSource, unsigned ID, llvm::StringRef Name) |
| Returns a URI providing more information about a particular diagnostic.
|
|
bool | clang::clangd::isBuiltinDiagnosticSuppressed (unsigned ID, const llvm::StringSet<> &Suppressed, const LangOptions &) |
| Determine whether a (non-clang-tidy) diagnostic is suppressed by config.
|
|
llvm::StringRef | clang::clangd::normalizeSuppressedCode (llvm::StringRef) |
| Take a user-specified diagnostic code, and convert it to a normalized form stored in the config and consumed by isBuiltinDiagnosticsSuppressed.
|
|