IdentifierTable &getIdentifierTable() { return Identifiers; }
SelectorTable &getSelectorTable() { return Selectors; }
- inline FullSourceLoc getFullLoc(SourceLocation Loc) const {
- return FullSourceLoc(Loc, getSourceManager());
- }
-
/// SetCommentRetentionState - Control whether or not the preprocessor retains
/// comments in output.
void SetCommentRetentionState(bool KeepComments, bool KeepMacroComments) {
/// the specified Token's location, translating the token's start
/// position in the current buffer into a SourcePosition object for rendering.
DiagnosticBuilder Preprocessor::Diag(SourceLocation Loc, unsigned DiagID) {
- return Diags.Report(getFullLoc(Loc), DiagID);
+ return Diags.Report(FullSourceLoc(Loc, getSourceManager()), DiagID);
}
DiagnosticBuilder Preprocessor::Diag(const Token &Tok, unsigned DiagID) {
- return Diags.Report(getFullLoc(Tok.getLocation()), DiagID);
+ return Diags.Report(FullSourceLoc(Tok.getLocation(), getSourceManager()),
+ DiagID);
}
void Preprocessor::DumpToken(const Token &Tok, bool DumpFlags) const {