diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-08 21:26:35 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-08 21:26:35 +0000 |
commit | 25ba02630820a798ace3f71a212c7bff00236748 (patch) | |
tree | a505fc924a311fc4c56b5d8607f7ee5bb34d5ae2 /include/clang/Basic/SourceManager.h | |
parent | 670aa9d7639278f507930e95dc89c12032ab7c7e (diff) |
Make SourceManager::getFullFilePos() public.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49402 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index 3555f05e32..59f1690778 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -390,6 +390,14 @@ public: return std::pair<unsigned,unsigned>(Loc.getFileID()-ChunkNo, Offset); } + + /// getFullFilePos - This (efficient) method returns the offset from the start + /// of the file that the specified physical SourceLocation represents. This + /// returns the location of the physical character data, not the logical file + /// position. + unsigned getFullFilePos(SourceLocation PhysLoc) const { + return getDecomposedFileLoc(PhysLoc).second; + } /// PrintStats - Print statistics to stderr. /// @@ -435,14 +443,6 @@ private: getContentCache(const SrcMgr::FileIDInfo* FIDInfo) const { return FIDInfo->getContentCache(); } - - /// getFullFilePos - This (efficient) method returns the offset from the start - /// of the file that the specified physical SourceLocation represents. This - /// returns the location of the physical character data, not the logical file - /// position. - unsigned getFullFilePos(SourceLocation PhysLoc) const { - return getDecomposedFileLoc(PhysLoc).second; - } }; |