diff options
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index 2d60404ee9..16a7c71905 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -364,6 +364,12 @@ public: 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. |