aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-18 20:13:06 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-18 20:13:06 +0000
commit9f68fa52543e04736cf6f40d82f3d6d49a3a0989 (patch)
tree114293a4e40a632776f62c8ed1e222193660f759 /include/clang/Basic/SourceLocation.h
parentea9e170437538ae73cf1167e0ac0ce302a37cf07 (diff)
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r--include/clang/Basic/SourceLocation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h
index 4cffb350b9..4118a4c9aa 100644
--- a/include/clang/Basic/SourceLocation.h
+++ b/include/clang/Basic/SourceLocation.h
@@ -116,7 +116,8 @@ public:
/// getRawFilePos - Return the byte offset from the start of the file-chunk
/// referred to by FileID. This method should not be used to get the offset
/// from the start of the file, instead you should use
- /// SourceManager::getFilePos. This method will be incorrect for large files.
+ /// SourceManager::getDecomposedFileLoc. This method will be
+ // incorrect for large files.
unsigned getRawFilePos() const {
assert(isFileID() && "can't get the file id of a non-file sloc!");
return ID & (ChunkSize-1);