Added method: Preprocessor::getFullSourceLoc. Used by clients of Preprocessor

to get a FullSourceLoc from a SourceLocation.

llvm-svn: 44948
This commit is contained in:
Ted Kremenek 2007-12-12 18:41:40 +00:00
parent 23e2085701
commit d8bcfe27cc
1 changed files with 4 additions and 0 deletions

View File

@ -152,6 +152,10 @@ public:
IdentifierTable &getIdentifierTable() { return Identifiers; }
SelectorTable &getSelectorTable() { return Selectors; }
inline FullSourceLoc getFullSourceLoc(SourceLocation Loc) {
return FullSourceLoc(Loc,getSourceManager());
}
/// SetCommentRetentionState - Control whether or not the preprocessor retains
/// comments in output.
void SetCommentRetentionState(bool KeepComments, bool KeepMacroComments) {