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

#include <SymbolLocation.h>

Public Member Functions

 Position ()=default
 
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 ( )
default

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(), clang::clangd::operator<(), clang::clangd::operator==(), and setLine().

◆ 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(), clang::clangd::operator<(), and clang::clangd::operator==().

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

Definition at line 22 of file SymbolLocation.cpp.

Referenced by clang::clangd::SymbolCollector::handleMacros().

◆ setLine()

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

Definition at line 17 of file SymbolLocation.cpp.

References column(), ColumnBits, and MaxLine.

Referenced by clang::clangd::SymbolCollector::handleMacros().

Member Data Documentation

◆ ColumnBits

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

Definition at line 44 of file SymbolLocation.h.

Referenced by line(), and setLine().

◆ 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(), and setLine().


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