aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-12-12 18:41:40 +0000
committerTed Kremenek <kremenek@apple.com>2007-12-12 18:41:40 +0000
commitea8646993741739d8a04d67396fe466dcc3a104f (patch)
treec766688c18855e58bf65fd50736299ea6132e12b
parente03a2f39accad260c021b7f24f082363578e7a93 (diff)
Added method: Preprocessor::getFullSourceLoc. Used by clients of Preprocessor
to get a FullSourceLoc from a SourceLocation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44948 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Lex/Preprocessor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 98b946ab54..5469c1108e 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -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) {