Public Member Functions |
Public Attributes |
Private Member Functions |
Private Attributes |
List of all members
SourceLocation Class Reference
a source code location that is cheap to create, copy, and store More...
#include <Here.h>
Collaboration diagram for SourceLocation:
Public Member Functions | |
SourceLocation (const char *aContext, const char *aFileName, const int aLineNo) | |
SourceLocationId | id () const |
std::ostream & | print (std::ostream &os) const |
describes location using a compact but human-friendly format More... | |
Public Attributes | |
const char * | context |
line-independent location description More... | |
const char * | fileName |
source file name, often relative to build path More... | |
int | lineNo |
line number inside the source file name (if positive) More... | |
Private Member Functions | |
SourceLocationId | calculateId (FileNameHasher) const |
Private Attributes | |
FileNameHashCacher * | fileNameHashCacher |
Detailed Description
Constructor & Destructor Documentation
◆ SourceLocation()
|
inline |
Member Function Documentation
◆ calculateId()
|
private |
◆ id()
SourceLocationId SourceLocation::id | ( | ) | const |
- Returns
- our location identifier
Definition at line 67 of file Here.cc.
References fileName, FileNameHash(), fileNameHashCacher, and lineNo.
Referenced by TextException::id().
◆ print()
std::ostream & SourceLocation::print | ( | std::ostream & | os | ) | const |
Definition at line 77 of file Here.cc.
References context, fileName, lineNo, and SkipBuildPrefix().
Referenced by operator<<().
Member Data Documentation
◆ context
◆ fileName
const char* SourceLocation::fileName |
◆ fileNameHashCacher
|
private |
◆ lineNo
The documentation for this class was generated from the following files: