aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-08-23 21:02:35 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-08-23 21:02:35 +0000
commit5d579e7b0463a2e65328df85e4fed8e07799fd9e (patch)
treec45b4f4537775768907237ab5014ca8d3f908c05 /include/clang/Basic/SourceManager.h
parentc0069d850efe74bac36c526dfec86b7dad1ede2f (diff)
Rename SourceManager::isBeforeInSourceLocationOffset -> isBeforeInSLocAddrSpace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h
index 8e4f9ed1c5..487249560c 100644
--- a/include/clang/Basic/SourceManager.h
+++ b/include/clang/Basic/SourceManager.h
@@ -1075,21 +1075,20 @@ public:
/// \brief Determines the order of 2 source locations in the "source location
/// address space".
- bool isBeforeInSourceLocationOffset(SourceLocation LHS,
- SourceLocation RHS) const {
- return isBeforeInSourceLocationOffset(LHS, RHS.getOffset());
+ bool isBeforeInSLocAddrSpace(SourceLocation LHS, SourceLocation RHS) const {
+ return isBeforeInSLocAddrSpace(LHS, RHS.getOffset());
}
/// \brief Determines the order of a source location and a source location
/// offset in the "source location address space".
///
/// Note that we always consider source locations loaded from
- bool isBeforeInSourceLocationOffset(SourceLocation LHS, unsigned RHS) const {
+ bool isBeforeInSLocAddrSpace(SourceLocation LHS, unsigned RHS) const {
unsigned LHSOffset = LHS.getOffset();
bool LHSLoaded = LHSOffset >= CurrentLoadedOffset;
bool RHSLoaded = RHS >= CurrentLoadedOffset;
if (LHSLoaded == RHSLoaded)
- return LHS.getOffset() < RHS;
+ return LHSOffset < RHS;
return LHSLoaded;
}