diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-22 08:08:35 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-22 08:08:35 +0000 |
commit | b897c8660c4ff7037dde81b9645737bc1c992abe (patch) | |
tree | b6403365e77095a79062d3379c9e6aea0df5f088 /include/clang/Basic/SourceManager.h | |
parent | 7ef7bab7e3d06f660b059b903c231f100bb13cc5 (diff) | |
download | src-b897c8660c4ff7037dde81b9645737bc1c992abe.tar.gz src-b897c8660c4ff7037dde81b9645737bc1c992abe.zip |
Update Clang sources to r73879.vendor/clang/clang-r73879
Notes
Notes:
svn path=/vendor/clang/dist/; revision=194613
svn path=/vendor/clang/clang-r73879/; revision=194615; tag=vendor/clang/clang-r73879
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index 57ae9a45114d..bcfb83b8942c 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -68,7 +68,12 @@ namespace SrcMgr { /// NumLines - The number of lines in this ContentCache. This is only valid /// if SourceLineCache is non-null. unsigned NumLines; - + + /// FirstFID - First FileID that was created for this ContentCache. + /// Represents the first source inclusion of the file associated with this + /// ContentCache. + mutable FileID FirstFID; + /// getBuffer - Returns the memory buffer for the associated content. const llvm::MemoryBuffer *getBuffer() const; @@ -624,6 +629,13 @@ public: //===--------------------------------------------------------------------===// // Other miscellaneous methods. //===--------------------------------------------------------------------===// + + /// \brief Get the source location for the given file:line:col triplet. + /// + /// If the source file is included multiple times, the source location will + /// be based upon the first inclusion. + SourceLocation getLocation(const FileEntry *SourceFile, + unsigned Line, unsigned Col) const; // Iterators over FileInfos. typedef llvm::DenseMap<const FileEntry*, SrcMgr::ContentCache*> |