clang-tools 20.0.0git
Public Member Functions | List of all members
clang::clangd::Annotations Class Reference

Same as llvm::Annotations, but adjusts functions to LSP-specific types for positions and ranges. More...

#include <Annotations.h>

Inheritance diagram for clang::clangd::Annotations:
Inheritance graph
[legend]

Public Member Functions

Position point (llvm::StringRef Name="") const
 
std::pair< Position, llvm::StringRef > pointWithPayload (llvm::StringRef Name="") const
 
std::vector< Positionpoints (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::Rangeranges (llvm::StringRef Name="") const
 
std::vector< std::pair< clangd::Range, llvm::StringRef > > rangesWithPayload (llvm::StringRef Name="") const
 

Detailed Description

Same as llvm::Annotations, but adjusts functions to LSP-specific types for positions and ranges.

Definition at line 23 of file Annotations.h.

Member Function Documentation

◆ point()

Position clang::clangd::Annotations::point ( llvm::StringRef  Name = "") const

Definition at line 15 of file Annotations.cpp.

References Name, and pointWithPayload().

◆ points()

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().

◆ pointsWithPayload()

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.

◆ pointWithPayload()

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()

Range clang::clangd::Annotations::range ( llvm::StringRef  Name = "") const

Definition at line 56 of file Annotations.cpp.

References Name, and rangeWithPayload().

◆ ranges()

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().

◆ rangesWithPayload()

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().

◆ rangeWithPayload()

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().


The documentation for this class was generated from the following files: