forked from OSchip/llvm-project
Added method: Preprocessor::getFullSourceLoc. Used by clients of Preprocessor
to get a FullSourceLoc from a SourceLocation. llvm-svn: 44948
This commit is contained in:
parent
23e2085701
commit
d8bcfe27cc
|
@ -152,6 +152,10 @@ public:
|
||||||
IdentifierTable &getIdentifierTable() { return Identifiers; }
|
IdentifierTable &getIdentifierTable() { return Identifiers; }
|
||||||
SelectorTable &getSelectorTable() { return Selectors; }
|
SelectorTable &getSelectorTable() { return Selectors; }
|
||||||
|
|
||||||
|
inline FullSourceLoc getFullSourceLoc(SourceLocation Loc) {
|
||||||
|
return FullSourceLoc(Loc,getSourceManager());
|
||||||
|
}
|
||||||
|
|
||||||
/// SetCommentRetentionState - Control whether or not the preprocessor retains
|
/// SetCommentRetentionState - Control whether or not the preprocessor retains
|
||||||
/// comments in output.
|
/// comments in output.
|
||||||
void SetCommentRetentionState(bool KeepComments, bool KeepMacroComments) {
|
void SetCommentRetentionState(bool KeepComments, bool KeepMacroComments) {
|
||||||
|
|
Loading…
Reference in New Issue