aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2018-12-11 09:15:10 +0000
committerSergio Martins <smartins@kde.org>2018-12-11 09:15:10 +0000
commit107ff3cf97d57680a6e6c1e7e978b26be0b0dc41 (patch)
tree5a9ac01786ea51ee50df381b7e7fb249cf62406a
parentedf6b2678565d2c3309cd46fe57cb45420b3c2c0 (diff)
Fix build with clang trunk
By using our getLocStart() wrapper
-rw-r--r--src/checks/level1/range-loop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checks/level1/range-loop.cpp b/src/checks/level1/range-loop.cpp
index a126294a..6eebfad2 100644
--- a/src/checks/level1/range-loop.cpp
+++ b/src/checks/level1/range-loop.cpp
@@ -71,7 +71,7 @@ void RangeLoop::VisitStmt(clang::Stmt *stmt)
bool RangeLoop::islvalue(Expr *exp, SourceLocation &endLoc)
{
if (isa<DeclRefExpr>(exp)) {
- endLoc = clazy::locForEndOfToken(&m_astContext, exp->getLocStart());
+ endLoc = clazy::locForEndOfToken(&m_astContext, getLocStart(exp));
return true;
}