clang
7.0.0
|
A source range that has been parsed on the command line. More...
#include "clang/Frontend/CommandLineSourceLoc.h"
Static Public Member Functions | |
static Optional< ParsedSourceRange > | fromString (StringRef Str) |
Returns a parsed source range from a string or None if the string is invalid. More... | |
Public Attributes | |
std::string | FileName |
std::pair< unsigned, unsigned > | Begin |
The starting location of the range. More... | |
std::pair< unsigned, unsigned > | End |
The ending location of the range. More... | |
A source range that has been parsed on the command line.
Definition at line 55 of file CommandLineSourceLoc.h.
|
inlinestatic |
Returns a parsed source range from a string or None 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 73 of file CommandLineSourceLoc.h.
References clang::ParsedSourceLocation::FromString(), and clang::None.
std::pair<unsigned, unsigned> clang::ParsedSourceRange::Begin |
The starting location of the range.
The first element is the line and the second element is the column.
Definition at line 59 of file CommandLineSourceLoc.h.
std::pair<unsigned, unsigned> clang::ParsedSourceRange::End |
The ending location of the range.
The first element is the line and the second element is the column.
Definition at line 62 of file CommandLineSourceLoc.h.
std::string clang::ParsedSourceRange::FileName |
Definition at line 56 of file CommandLineSourceLoc.h.