[cfe-commits] r45237 - /cfe/trunk/include/clang/Basic/SourceManager.h
Ted Kremenek
kremenek at apple.com
Wed Dec 19 16:15:17 PST 2007
Author: kremenek
Date: Wed Dec 19 18:15:17 2007
New Revision: 45237
URL: http://llvm.org/viewvc/llvm-project?rev=45237&view=rev
Log:
Added method getFileEntryForID() to SourceManager.
Modified:
cfe/trunk/include/clang/Basic/SourceManager.h
Modified: cfe/trunk/include/clang/Basic/SourceManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/SourceManager.h?rev=45237&r1=45236&r2=45237&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/SourceManager.h (original)
+++ cfe/trunk/include/clang/Basic/SourceManager.h Wed Dec 19 18:15:17 2007
@@ -364,6 +364,12 @@
return getContentCacheForLoc(Loc)->Entry;
}
+ /// getFileEntryForID - Returns the FileEntry record for the provided FileID.
+ const FileEntry* getFileEntryForID(unsigned id) const {
+ return getContentCache(id)->Entry;
+ }
+
+
/// getDecomposedFileLoc - Decompose the specified file location into a raw
/// FileID + Offset pair. The first element is the FileID, the second is the
/// offset from the start of the buffer of the location.
More information about the cfe-commits
mailing list