clang-tools 22.0.0git
Location Struct Reference

Public Member Functions

 Location ()=default
 Location (SourceManager &SM, SourceLocation Loc)
 operator bool () const

Public Attributes

OptionalFileEntryRef File
unsigned Line = 0
unsigned Column = 0

Friends

bool operator== (const Location &X, const Location &Y)
bool operator!= (const Location &X, const Location &Y)
bool operator< (const Location &X, const Location &Y)
bool operator> (const Location &X, const Location &Y)
bool operator<= (const Location &X, const Location &Y)
bool operator>= (const Location &X, const Location &Y)

Detailed Description

Definition at line 378 of file Modularize.cpp.

Constructor & Destructor Documentation

◆ Location() [1/2]

Location::Location ( )
default

◆ Location() [2/2]

Location::Location ( SourceManager & SM,
SourceLocation Loc )
inline

Definition at line 384 of file Modularize.cpp.

References Column, File, and Line.

Member Function Documentation

◆ operator bool()

Location::operator bool ( ) const
inlineexplicit

Definition at line 398 of file Modularize.cpp.

References File.

◆ operator!=

bool operator!= ( const Location & X,
const Location & Y )
friend

Definition at line 404 of file Modularize.cpp.

References Location(), and X().

◆ operator<

bool operator< ( const Location & X,
const Location & Y )
friend

Definition at line 408 of file Modularize.cpp.

References Column, File, Line, Location(), and X().

◆ operator<=

bool operator<= ( const Location & X,
const Location & Y )
friend

Definition at line 413 of file Modularize.cpp.

References Location(), and X().

◆ operator==

bool operator== ( const Location & X,
const Location & Y )
friend

Definition at line 400 of file Modularize.cpp.

References Column, File, Line, Location(), and X().

◆ operator>

bool operator> ( const Location & X,
const Location & Y )
friend

Definition at line 412 of file Modularize.cpp.

References Location(), and X().

◆ operator>=

bool operator>= ( const Location & X,
const Location & Y )
friend

Definition at line 416 of file Modularize.cpp.

References Location(), and X().

Member Data Documentation

◆ Column

unsigned Location::Column = 0

Definition at line 380 of file Modularize.cpp.

Referenced by Location(), operator<, and operator==.

◆ File

OptionalFileEntryRef Location::File

Definition at line 379 of file Modularize.cpp.

Referenced by EntityMap::add(), Location(), operator bool(), operator<, and operator==.

◆ Line

unsigned Location::Line = 0

Definition at line 380 of file Modularize.cpp.

Referenced by Location(), operator<, and operator==.


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