clang-tools 20.0.0git
|
Same as llvm::Annotations, but adjusts functions to LSP-specific types for positions and ranges. More...
#include <Annotations.h>
Public Member Functions | |
Position | point (llvm::StringRef Name="") const |
std::pair< Position, llvm::StringRef > | pointWithPayload (llvm::StringRef Name="") const |
std::vector< Position > | points (llvm::StringRef Name="") const |
std::vector< std::pair< Position, llvm::StringRef > > | pointsWithPayload (llvm::StringRef Name="") const |
clangd::Range | range (llvm::StringRef Name="") const |
std::pair< clangd::Range, llvm::StringRef > | rangeWithPayload (llvm::StringRef Name="") const |
std::vector< clangd::Range > | ranges (llvm::StringRef Name="") const |
std::vector< std::pair< clangd::Range, llvm::StringRef > > | rangesWithPayload (llvm::StringRef Name="") const |
Same as llvm::Annotations, but adjusts functions to LSP-specific types for positions and ranges.
Definition at line 23 of file Annotations.h.
Position clang::clangd::Annotations::point | ( | llvm::StringRef | Name = "" | ) | const |
Definition at line 15 of file Annotations.cpp.
References Name, and pointWithPayload().
std::vector< Position > clang::clangd::Annotations::points | ( | llvm::StringRef | Name = "" | ) | const |
Definition at line 25 of file Annotations.cpp.
References Name, and clang::clangd::offsetToPosition().
std::vector< std::pair< Position, llvm::StringRef > > clang::clangd::Annotations::pointsWithPayload | ( | llvm::StringRef | Name = "" | ) | const |
Definition at line 37 of file Annotations.cpp.
References Name, clang::clangd::offsetToPosition(), and Payload.
std::pair< Position, llvm::StringRef > clang::clangd::Annotations::pointWithPayload | ( | llvm::StringRef | Name = "" | ) | const |
Definition at line 20 of file Annotations.cpp.
References Name, clang::clangd::offsetToPosition(), and Payload.
Referenced by point().
Range clang::clangd::Annotations::range | ( | llvm::StringRef | Name = "" | ) | const |
Definition at line 56 of file Annotations.cpp.
References Name, and rangeWithPayload().
std::vector< Range > clang::clangd::Annotations::ranges | ( | llvm::StringRef | Name = "" | ) | const |
Definition at line 66 of file Annotations.cpp.
References Name, and clang::clangd::toLSPRange().
std::vector< std::pair< clangd::Range, llvm::StringRef > > clang::clangd::Annotations::rangesWithPayload | ( | llvm::StringRef | Name = "" | ) | const |
Definition at line 78 of file Annotations.cpp.
References Name, Payload, and clang::clangd::toLSPRange().
std::pair< clangd::Range, llvm::StringRef > clang::clangd::Annotations::rangeWithPayload | ( | llvm::StringRef | Name = "" | ) | const |
Definition at line 61 of file Annotations.cpp.
References Name, Payload, and clang::clangd::toLSPRange().
Referenced by range().