Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.10.0-beta1
-
None
-
-
1959664210bdaa56452834bc225400bc26d1d2cf (qt-creator/qt-creator/4.9)
Description
While trying to build QTCreator from git (this commit https://github.com/qt-creator/qt-creator/commit/7b39db9e8a0e36ad59eae0a7dea776d4205032a8) following these instructions https://wiki.qt.io/Building_Qt_Creator_from_Git I've got this error.
In file included from ../../../../qt-creator/src/tools/clangrefactoringbackend/source/collectsymbolsaction.h:30:0, from ../../../../qt-creator/src/tools/clangrefactoringbackend/source/symbolscollector.h:30, from ../../../../qt-creator/src/tools/clangrefactoringbackend/source/symbolindexing.h:31, from ../../../../qt-creator/src/tools/clangrefactoringbackend/source/refactoringserver.cpp:30: ../../../../qt-creator/src/tools/clangrefactoringbackend/source/indexdataconsumer.h:55:10: error: ‘bool ClangBackEnd::IndexDataConsumer::handleDeclOccurence(const clang::Decl*, clang::index::SymbolRoleSet, llvm::ArrayRef<clang::index::SymbolRelation>, clang::SourceLocation, clang::index::IndexDataConsumer::ASTNodeInfo)’ marked ‘override’, but does not override bool handleDeclOccurence(const clang::Decl *declaration, ^~~~~~~~~~~~~~~~~~~
This is the code where this error occurs https://github.com/qt-creator/qt-creator/blob/master/src/tools/clangrefactoringbackend/source/indexdataconsumer.h#L55
I've figured out that the method handleDeclOccurence in file clang/Index/IndexDataConsumer.h takes different parameters in Ubuntu packages libclang-6.0-dev and libclang-7-dev and if I have libclang-6.0-dev installed the compilation error occurs. The README states that the LLVM/Clang 6.0.0 or later is required, but it seems that 6.0.0 version is incompatible with the current code.