From: Ted Kremenek Date: Tue, 8 Apr 2008 21:26:35 +0000 (+0000) Subject: Make SourceManager::getFullFilePos() public. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25ba02630820a798ace3f71a212c7bff00236748;p=clang Make SourceManager::getFullFilePos() public. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49402 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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(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; - } };