aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2018-08-09 20:05:03 +0000
committerStephen Kelly <steveire@gmail.com>2018-08-09 20:05:03 +0000
commit724e9e52a43ec1e63d199c0f87f94acb68b198dd (patch)
treeceb76bdc12fd256dd947eb4c7e3ba0e1387ffc7b /clang/lib/Sema/SemaChecking.cpp
parentc53078a1e39dd40392913c18f2f5e1f26d582935 (diff)
downloadllvm-724e9e52a43ec1e63d199c0f87f94acb68b198dd.zip
llvm-724e9e52a43ec1e63d199c0f87f94acb68b198dd.tar.gz
llvm-724e9e52a43ec1e63d199c0f87f94acb68b198dd.tar.bz2
Add getBeginLoc API to replace getLocStart
Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D50346 llvm-svn: 339372
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 2edc9ca..88e0a64 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -6121,7 +6121,8 @@ class FormatStringLiteral {
StartToken, StartTokenByteOffset);
}
- SourceLocation getLocStart() const LLVM_READONLY {
+ SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
+ SourceLocation getBeginLoc() const LLVM_READONLY {
return FExpr->getLocStart().getLocWithOffset(Offset);
}