|
Blender V5.3
|
Represents a specific position within a source file or included sub-file. More...
#include <source_location.hh>
Public Member Functions | |
| SourceLocation (Token tok) | |
| operator string () const | |
Public Attributes | |
| Token | tok |
Friends | |
| bool | operator<= (const SourceLocation &a, const SourceLocation &b) |
| bool | operator< (const SourceLocation &a, const SourceLocation &b) |
Represents a specific position within a source file or included sub-file.
SourceLocation wraps a lexical Token to provide formatted string representations (e.g., file.hh:12:5) for diagnostic output, as well as ordering operators to compare token positions across translation units and #include hierarchies.
Definition at line 26 of file source_location.hh.
|
inline |
Definition at line 29 of file source_location.hh.
References tok.
Referenced by operator<, and operator<=.
|
inline |
Definition at line 31 of file source_location.hh.
References to_string(), and tok.
|
friend |
Definition at line 43 of file source_location.hh.
References b, lexit::Token::index_, SourceLocation(), and tok.
|
friend |
Definition at line 37 of file source_location.hh.
References b, lexit::Token::index_, SourceLocation(), and tok.
| Token bsl::SourceLocation::tok |
Definition at line 27 of file source_location.hh.
Referenced by bsl::SymbolClass::ensure_size_and_align(), operator string(), operator<, operator<=, bsl::SymbolParser::parse_function_arguments(), bsl::SymbolParser::parse_template_arguments(), and SourceLocation().