diff options
author | Chris Lattner <sabre@nondot.org> | 2007-10-16 22:36:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-10-16 22:36:42 +0000 |
commit | 311ff02fae0392bee6abe7723cdf5a69b2899a47 (patch) | |
tree | d5ad955ebc02cca2d55aec58847593b73ffa340a /include/clang/Basic/SourceLocation.h | |
parent | 3e7fd152aa8f13da75cd91a96ef78cc823c5f32d (diff) |
Add a new Rewriter::getRangeSize method.
Rename SourceRange::Begin()/End() to getBegin()/getEnd() for
consistency with other code.
Start building the rewriter towards handling @encode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r-- | include/clang/Basic/SourceLocation.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index 1ebb0ff3f8..f5cad5cea4 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h @@ -166,8 +166,8 @@ public: SourceRange(SourceLocation loc) : B(loc), E(loc) {} SourceRange(SourceLocation begin, SourceLocation end) : B(begin), E(end) {} - SourceLocation Begin() const { return B; } - SourceLocation End() const { return E; } + SourceLocation getBegin() const { return B; } + SourceLocation getEnd() const { return E; } void setBegin(SourceLocation b) { B = b; } void setEnd(SourceLocation e) { E = e; } |