Adapt to Clang 3.4 (in preparation of a buildbot on CentOS 7)

Change-Id: Ie2859f03b31c57deb7fd0deba3285f782e33b239
This commit is contained in:
Stephan Bergmann
2016-06-28 16:25:55 +02:00
parent 36936d5a8c
commit 9308f35318
13 changed files with 55 additions and 18 deletions

View File

@@ -98,10 +98,11 @@ public:
}
CompoundStmt const*const pCompoundStatement(
dyn_cast<CompoundStmt>(pMethodDecl->getBody()));
for (auto const pStmt : pCompoundStatement->body())
for (auto i = pCompoundStatement->body_begin();
i != pCompoundStatement->body_end(); ++i)
{
// note: this is not a CXXMemberCallExpr
CallExpr const*const pCallExpr(dyn_cast<CallExpr>(pStmt));
CallExpr const*const pCallExpr(dyn_cast<CallExpr>(*i));
if (pCallExpr)
{
// note: this is only sometimes a CXXMethodDecl