Retrieve the file, line, column, and offset represented by the given source location, as specified in a # line directive.
Get the column represented by this source location.
Retrieve the file, line, column, and offset represented by the given source location.
Get the file represented by this source location. TODO implement with a cache, this is inefficient.
Returns if the given source location is in the main file of the corresponding translation unit.
Get the line represented by this source location.
Get the file offset represented by this source location.
The path the SourceLocation point to.
Retrieve the file, line, column, and offset represented by the given source location.
Retrieve a NULL (invalid) source location.
Retrieves the source location associated with a given character offset in a particular translation unit. TODO consider moving to TranslationUnit instead
Retrieves the source location associated with a given file/line/column in a particular translation unit. TODO consider moving to TranslationUnit instead
Trusted: on the assumption that dispose as implemented by the LLVM community is good _enough_. Any bugs should by now have been found.
A SourceLocation represents a particular location within a source file.