Commit e72a8dba authored by Sergio Martins's avatar Sergio Martins

Fix build with LLVM 7

parent c8413da3
......@@ -77,7 +77,7 @@ static bool isInterestingCtorCall(CXXConstructorDecl *ctor)
void Qt6QLatin1StringToU::VisitStmt(clang::Stmt *stmt)
{
CXXConstructExpr *ctorExpr = dyn_cast<CXXConstructExpr>(stmt);
auto ctorExpr = dyn_cast<CXXConstructExpr>(stmt);
if (!ctorExpr)
return;
......@@ -90,7 +90,7 @@ void Qt6QLatin1StringToU::VisitStmt(clang::Stmt *stmt)
return;
message = "QLatin1String(const char *) ctor being called";
for (auto macro_pos : m_listingMacroExpand) {
if ( m_sm.isPointWithin(macro_pos , stmt->getBeginLoc(), stmt->getEndLoc())) {
if (m_sm.isPointWithin(macro_pos, clazy::getLocStart(stmt), clazy::getLocEnd(stmt))) {
emitWarning(clazy::getLocStart(stmt), message, fixits);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment