struct ParsedSourceRange
Declaration
struct ParsedSourceRange { /* full declaration omitted */ };
Description
A source range that has been parsed on the command line.
Declared at: clang/include/clang/Frontend/CommandLineSourceLoc.h:61
Member Variables
- public std::string FileName
- public std::pair<unsigned int, unsigned int> Begin
- The starting location of the range. The first element is the line and the second element is the column.
- public std::pair<unsigned int, unsigned int> End
- The ending location of the range. The first element is the line and the second element is the column.
Method Overview
- public static Optional<clang::ParsedSourceRange> fromString(llvm::StringRef Str)
Methods
ΒΆstatic Optional<clang::ParsedSourceRange>
fromString(llvm::StringRef Str)
static Optional<clang::ParsedSourceRange>
fromString(llvm::StringRef Str)
Description
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.
Declared at: clang/include/clang/Frontend/CommandLineSourceLoc.h:79
Parameters
- llvm::StringRef Str