summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/inlinesimplememberfunctions.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-04 09:36:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-04 09:36:32 +0200
commitc15b4cf39a74176cee64795129d76f411d2c0a69 (patch)
treecf03416c9dd4762553e1dc66fdec5ded319c7353 /compilerplugins/clang/inlinesimplememberfunctions.cxx
parentinclude: inline some use-once typedefs (diff)
downloadcore-c15b4cf39a74176cee64795129d76f411d2c0a69.tar.gz
core-c15b4cf39a74176cee64795129d76f411d2c0a69.zip
Adapt to current Clang trunk towards 3.7
Change-Id: Ibb2c641d49a1773be789c9259f53a040db6f605f
Diffstat (limited to 'compilerplugins/clang/inlinesimplememberfunctions.cxx')
-rw-r--r--compilerplugins/clang/inlinesimplememberfunctions.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/compilerplugins/clang/inlinesimplememberfunctions.cxx b/compilerplugins/clang/inlinesimplememberfunctions.cxx
index 42dd2569df72..74959c3127bd 100644
--- a/compilerplugins/clang/inlinesimplememberfunctions.cxx
+++ b/compilerplugins/clang/inlinesimplememberfunctions.cxx
@@ -31,10 +31,10 @@ private:
};
static bool oneAndOnlyOne(clang::Stmt::const_child_range range) {
- if (range.empty()) {
+ if (compat::begin(range) == compat::end(range)) {
return false;
}
- if ((++range.first) != range.second) {
+ if (++compat::begin(range) != compat::end(range)) {
return false;
}
return true;
@@ -134,7 +134,7 @@ bool InlineSimpleMemberFunctions::VisitCXXMethodDecl(const CXXMethodDecl * funct
{
childStmt2 = *childStmt2->child_begin();
if (dyn_cast<CXXThisExpr>( childStmt2 ) != nullptr
- && childStmt2->children().empty())
+ && compat::begin(childStmt2->children()) == compat::end(childStmt2->children()))
{
return true;
}
@@ -145,7 +145,7 @@ bool InlineSimpleMemberFunctions::VisitCXXMethodDecl(const CXXMethodDecl * funct
{
const Stmt* childStmt2 = *childStmt->child_begin();
if (dyn_cast<CXXThisExpr>( childStmt2 ) != nullptr
- && childStmt2->children().empty())
+ && compat::begin(childStmt2->children()) == compat::end(childStmt2->children()))
{
return true;
}
@@ -208,7 +208,7 @@ bool InlineSimpleMemberFunctions::VisitCXXMethodDecl(const CXXMethodDecl * funct
}
return true;
}
- if ( childStmt->children().empty() )
+ if ( compat::begin(childStmt->children()) == compat::end(childStmt->children()) )
return true;
childStmt = *childStmt->child_begin();
}