[cfe-commits] r49402 - /cfe/trunk/include/clang/Basic/SourceManager.h

Ted Kremenek kremenek at apple.com
Tue Apr 8 14:26:43 PDT 2008


Author: kremenek
Date: Tue Apr  8 16:26:35 2008
New Revision: 49402

URL: http://llvm.org/viewvc/llvm-project?rev=49402&view=rev
Log:
Make SourceManager::getFullFilePos() public.

Modified:
    cfe/trunk/include/clang/Basic/SourceManager.h

Modified: cfe/trunk/include/clang/Basic/SourceManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/SourceManager.h?rev=49402&r1=49401&r2=49402&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/SourceManager.h (original)
+++ cfe/trunk/include/clang/Basic/SourceManager.h Tue Apr  8 16:26:35 2008
@@ -390,6 +390,14 @@
     
     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 @@
   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;
-  }
 };
 
 





More information about the cfe-commits mailing list