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
+5 -5
View File
@@ -4,19 +4,19 @@
#### External Software
* QT 5.5
* QT 5.6
* CxxTest 4.3
* Valgrind 3.9.0 (linux)
* Clang & LLVM (doesnt quite work for windows, use unix setup below and skip all the ninja stuff)(installation guide http://clang.llvm.org/docs/LibASTMatchersTutorial.html)
* Clang & LLVM 3.8 (doesnt quite work for windows, use unix setup below and skip all the ninja stuff)(installation guide http://clang.llvm.org/docs/LibASTMatchersTutorial.html)
* Boost 1.59
* Eigen 3.2.6
* Botan 1.11.24
#### Environment Variables
* QT_DIR - ...\Qt\Qt5.2.1\5.2.1\<IDE>\
* CXX_TEST_DIR - .../cxxtest-4.3/
* CLANG_DIR - .../clang-llvm/
* QT_DIR - .../Qt/Qt5.6.0/5.6/<IDE>
* CXX_TEST_DIR - .../cxxtest-4.3
* CLANG_DIR - .../clang-llvm
* BOOST_159_DIR - .../boost_1_59_0
* EIGEN_DIR - .../eigen
* BOTAN_DIR - .../Botan-1.11.24
@@ -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