[cfe-commits] r44948 - /cfe/trunk/include/clang/Lex/Preprocessor.h
Ted Kremenek
kremenek at apple.com
Wed Dec 12 10:41:41 PST 2007
Author: kremenek
Date: Wed Dec 12 12:41:40 2007
New Revision: 44948
URL: http://llvm.org/viewvc/llvm-project?rev=44948&view=rev
Log:
Added method: Preprocessor::getFullSourceLoc. Used by clients of Preprocessor
to get a FullSourceLoc from a SourceLocation.
Modified:
cfe/trunk/include/clang/Lex/Preprocessor.h
Modified: cfe/trunk/include/clang/Lex/Preprocessor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Preprocessor.h?rev=44948&r1=44947&r2=44948&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/Preprocessor.h (original)
+++ cfe/trunk/include/clang/Lex/Preprocessor.h Wed Dec 12 12:41:40 2007
@@ -152,6 +152,10 @@
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) {
More information about the cfe-commits
mailing list