diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-27 06:27:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-27 06:27:13 +0000 |
commit | 52c29081281955d3db9e11d10573b2d38f709099 (patch) | |
tree | 28948e3c2b20fb85ca2870abe1f5ba32d2524820 /include/clang/Basic/SourceManager.h | |
parent | 5f0e9325adee74323514469ccc9a78f4facd66b0 (diff) |
rename getFullFilePos -> getFileOffset.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index 84aabe1f31..dab3badea2 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -468,11 +468,10 @@ public: return getDecomposedSpellingLocSlowCase(E, Offset); } - /// getFullFilePos - This (efficient) method returns the offset from the start - /// of the file that the specified spelling SourceLocation represents. This - /// returns the location of the actual character data, not the instantiation - /// position. - unsigned getFullFilePos(SourceLocation SpellingLoc) const { + /// getFileOffset - This method returns the offset from the start + /// of the file that the specified SourceLocation represents. This is not very + /// meaningful for a macro ID. + unsigned getFileOffset(SourceLocation SpellingLoc) const { return getDecomposedLoc(SpellingLoc).second; } |