clang-tools 20.0.0git
Public Member Functions | Public Attributes | Friends | List of all members
Location Struct Reference

Public Member Functions

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

Public Attributes

OptionalFileEntryRef File
 
unsigned Line
 
unsigned Column
 

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 382 of file Modularize.cpp.

Constructor & Destructor Documentation

◆ Location() [1/2]

Location::Location ( )
inline

Definition at line 386 of file Modularize.cpp.

◆ Location() [2/2]

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

Definition at line 388 of file Modularize.cpp.

References Column, File, Line, and Loc.

Member Function Documentation

◆ operator bool()

Location::operator bool ( ) const
inline

Definition at line 402 of file Modularize.cpp.

References File.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 408 of file Modularize.cpp.

◆ operator<

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

Definition at line 412 of file Modularize.cpp.

◆ operator<=

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

Definition at line 420 of file Modularize.cpp.

◆ operator==

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

Definition at line 404 of file Modularize.cpp.

◆ operator>

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

Definition at line 419 of file Modularize.cpp.

◆ operator>=

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

Definition at line 423 of file Modularize.cpp.

Member Data Documentation

◆ Column

unsigned Location::Column

Definition at line 384 of file Modularize.cpp.

Referenced by Location().

◆ File

OptionalFileEntryRef Location::File

Definition at line 383 of file Modularize.cpp.

Referenced by Location(), and operator bool().

◆ Line

unsigned Location::Line

Definition at line 384 of file Modularize.cpp.

Referenced by Location().


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