]> granicus.if.org Git - clang/commitdiff
Make SourceManager::getFullFilePos() public.
authorTed Kremenek <kremenek@apple.com>
Tue, 8 Apr 2008 21:26:35 +0000 (21:26 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 8 Apr 2008 21:26:35 +0000 (21:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49402 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/SourceManager.h

index 3555f05e32afa16776c0041d45d348c71debf6b0..59f16907783054aa50086d0391cf44dae1003084 100644 (file)
@@ -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;
-  }
 };