build: update to clang 3.8

* removed unsupported method from ASTVisitor after updating to clang 3.8
This commit is contained in:
malte_langkabel
2016-05-03 15:59:59 +02:00
parent 8ef6d77c50
commit 75ced4b775
3 changed files with 5 additions and 21 deletions
@@ -68,21 +68,6 @@ bool ASTVisitor::VisitTranslationUnitDecl(clang::TranslationUnitDecl* decl)
return true;
}
bool ASTVisitor::shouldUseDataRecursionFor(clang::Stmt *s) const
{
if (s == NULL || !base::shouldUseDataRecursionFor(s))
return false;
if (clang::UnaryOperator *e = llvm::dyn_cast<clang::UnaryOperator>(s)) {
return e->getOpcode() >= clang::UO_Plus &&
e->getOpcode() <= clang::UO_Imag;
}
if (clang::BinaryOperator *e = llvm::dyn_cast<clang::BinaryOperator>(s)) {
return e->getOpcode() >= clang::BO_Mul &&
e->getOpcode() <= clang::BO_LOr;
}
return false;
}
///////////////////////////////////////////////////////////////////////////////
// Dispatcher routines
@@ -129,7 +129,6 @@ private:
// Misc routines
bool shouldVisitTemplateInstantiations() const { return true; }
bool shouldUseDataRecursionFor(clang::Stmt *s) const;
bool shouldVisitImplicitCode() const { return true; }
// Dispatcher routines