aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-10-12 05:44:03 +0000
committerChris Lattner <sabre@nondot.org>2008-10-12 05:44:03 +0000
commitcff9cc95de367a3aea885a7f8fee304fe2707b92 (patch)
treea7c6af20ebfdf923c65851535855ab6b5063ba56 /include/clang/Basic/SourceLocation.h
parentb13c5eef3634e32075511d11ded4b699c17fb0d7 (diff)
start implementing a token rewriter. At this point, it just reads in a file
and lets a client iterate over it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r--include/clang/Basic/SourceLocation.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h
index ee6cc145fe..2e96f133b4 100644
--- a/include/clang/Basic/SourceLocation.h
+++ b/include/clang/Basic/SourceLocation.h
@@ -155,6 +155,11 @@ public:
/// directly.
unsigned getRawEncoding() const { return ID; }
+
+ bool operator<(const SourceLocation &RHS) const {
+ return ID < RHS.ID;
+ }
+
/// getFromRawEncoding - Turn a raw encoding of a SourceLocation object into
/// a real SourceLocation.
static SourceLocation getFromRawEncoding(unsigned Encoding) {