clang-tools  14.0.0git
Public Member Functions | Static Public Attributes | List of all members
clang::clangd::SymbolLocation::Position Struct Reference

#include <SymbolLocation.h>

Collaboration diagram for clang::clangd::SymbolLocation::Position:
Collaboration graph
[legend]

Public Member Functions

 Position ()
 
void setLine (uint32_t Line)
 
uint32_t line () const
 
void setColumn (uint32_t Column)
 
uint32_t column () const
 
uint32_t rep () const
 
bool hasOverflow () const
 

Static Public Attributes

static constexpr unsigned ColumnBits = 12
 
static constexpr uint32_t MaxLine = (1 << (32 - ColumnBits)) - 1
 
static constexpr uint32_t MaxColumn = (1 << ColumnBits) - 1
 

Detailed Description

Definition at line 32 of file SymbolLocation.h.

Constructor & Destructor Documentation

◆ Position()

clang::clangd::SymbolLocation::Position::Position ( )
inline

Definition at line 33 of file SymbolLocation.h.

Member Function Documentation

◆ column()

uint32_t clang::clangd::SymbolLocation::Position::column ( ) const
inline

Definition at line 37 of file SymbolLocation.h.

References MaxColumn.

Referenced by hasOverflow(), and llvm::yaml::NormalizedPosition::NormalizedPosition().

◆ hasOverflow()

bool clang::clangd::SymbolLocation::Position::hasOverflow ( ) const
inline

Definition at line 40 of file SymbolLocation.h.

References column(), line(), MaxColumn, and MaxLine.

◆ line()

uint32_t clang::clangd::SymbolLocation::Position::line ( ) const
inline

Definition at line 35 of file SymbolLocation.h.

References ColumnBits.

Referenced by hasOverflow(), and llvm::yaml::NormalizedPosition::NormalizedPosition().

◆ rep()

uint32_t clang::clangd::SymbolLocation::Position::rep ( ) const
inline

Definition at line 38 of file SymbolLocation.h.

◆ setColumn()

void clang::clangd::SymbolLocation::Position::setColumn ( uint32_t  Column)

◆ setLine()

void clang::clangd::SymbolLocation::Position::setLine ( uint32_t  Line)

Member Data Documentation

◆ ColumnBits

constexpr unsigned clang::clangd::SymbolLocation::Position::ColumnBits = 12
staticconstexpr

Definition at line 44 of file SymbolLocation.h.

Referenced by line().

◆ MaxColumn

constexpr uint32_t clang::clangd::SymbolLocation::Position::MaxColumn = (1 << ColumnBits) - 1
staticconstexpr

Definition at line 46 of file SymbolLocation.h.

Referenced by column(), and hasOverflow().

◆ MaxLine

constexpr uint32_t clang::clangd::SymbolLocation::Position::MaxLine = (1 << (32 - ColumnBits)) - 1
staticconstexpr

Definition at line 45 of file SymbolLocation.h.

Referenced by hasOverflow().


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