diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-12 05:44:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-12 05:44:03 +0000 |
commit | cff9cc95de367a3aea885a7f8fee304fe2707b92 (patch) | |
tree | a7c6af20ebfdf923c65851535855ab6b5063ba56 /include/clang/Basic/SourceLocation.h | |
parent | b13c5eef3634e32075511d11ded4b699c17fb0d7 (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.h | 5 |
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) { |