clang 20.0.0git
|
A source range that has been parsed on the command line. More...
#include "clang/Frontend/CommandLineSourceLoc.h"
Static Public Member Functions | |
static std::optional< ParsedSourceRange > | fromString (StringRef Str) |
Returns a parsed source range from a string or std::nullopt if the string is invalid. | |
Public Attributes | |
std::string | FileName |
std::pair< unsigned, unsigned > | Begin |
The starting location of the range. | |
std::pair< unsigned, unsigned > | End |
The ending location of the range. | |
A source range that has been parsed on the command line.
Definition at line 62 of file CommandLineSourceLoc.h.
|
inlinestatic |
Returns a parsed source range from a string or std::nullopt if the string is invalid.
These source string has the following format:
file:start_line:start_column[-end_line:end_column]
If the end line and column are omitted, the starting line and columns are used as the end values.
Definition at line 80 of file CommandLineSourceLoc.h.
References Begin, and clang::ParsedSourceLocation::FromString().
The starting location of the range.
The first element is the line and the second element is the column.
Definition at line 66 of file CommandLineSourceLoc.h.
Referenced by fromString().
The ending location of the range.
The first element is the line and the second element is the column.
Definition at line 69 of file CommandLineSourceLoc.h.
std::string clang::ParsedSourceRange::FileName |
Definition at line 63 of file CommandLineSourceLoc.h.