CIRCT 22.0.0git
|
This helper class is used to handle Info records, which specify higher level symbolic source location, that may be missing from the file. More...
Public Member Functions | |
LocWithInfo (SMLoc firLoc, FIRParser *parser) | |
SMLoc | getFIRLoc () const |
Location | getLoc () |
ParseResult | parseOptionalInfo () |
Parse an @info marker if present and update our location. | |
void | setDefaultLoc (Location loc) |
If we didn't parse an info locator for the specified value, this sets a default, overriding a fall back to a location in the .fir file. | |
Private Attributes | |
FIRParser *const | parser |
SMLoc | firLoc |
This is the designated location in the .fir file for use when there is no @ info marker. | |
std::optional< Location > | infoLoc |
This is the location specified by the @ marker if present. | |
This helper class is used to handle Info records, which specify higher level symbolic source location, that may be missing from the file.
If the higher level source information is missing, we fall back to the location in the .fir file.
Definition at line 379 of file FIRParser.cpp.
|
inlineexplicit |
Definition at line 381 of file FIRParser.cpp.
|
inline |
Definition at line 384 of file FIRParser.cpp.
References firLoc.
|
inline |
Definition at line 386 of file FIRParser.cpp.
|
inline |
Parse an @info marker if present and update our location.
Definition at line 395 of file FIRParser.cpp.
|
inline |
If we didn't parse an info locator for the specified value, this sets a default, overriding a fall back to a location in the .fir file.
Definition at line 419 of file FIRParser.cpp.
References infoLoc.
|
private |
This is the designated location in the .fir file for use when there is no @ info marker.
Definition at line 429 of file FIRParser.cpp.
Referenced by getFIRLoc(), and getLoc().
|
private |
This is the location specified by the @ marker if present.
Definition at line 432 of file FIRParser.cpp.
Referenced by getLoc(), parseOptionalInfo(), and setDefaultLoc().
|
private |
Definition at line 425 of file FIRParser.cpp.
Referenced by getLoc(), and parseOptionalInfo().