Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24357

clangrefactoringbackend doesn't build with clang != 10 but isn't turned off

    XMLWordPrintable

Details

    • Linux/X11

    Description

      Building qt-creator for openSUSE Leap 15.2 with clang 9 fails:

      [ 691s] In file included from /home/abuild/rpmbuild/BUILD/qt-creator-opensource-src-4.13.0-beta1/src/tools/clangrefactoringbackend/source/collectsymbolsaction.h:29:0,
      [ 691s] from /home/abuild/rpmbuild/BUILD/qt-creator-opensource-src-4.13.0-beta1/src/tools/clangrefactoringbackend/source/collectsymbolsaction.cpp:26:
      [ 691s] /home/abuild/rpmbuild/BUILD/qt-creator-opensource-src-4.13.0-beta1/src/tools/clangrefactoringbackend/source/indexdataconsumer.h:60:10: error: 'bool ClangBackEnd::IndexDataConsumer::handleDeclOccurrence(const clang::Decl*, clang::index::SymbolRoleSet, llvm::ArrayRef<clang::index::SymbolRelation>, clang::SourceLocation, clang::index::IndexDataConsumer::ASTNodeInfo)' marked 'override', but does not override
      [ 691s] bool handleDeclOccurrence(
      [ 691s] ^~~~~~~~~~~~~~~~~~~~
      [ 691s] /home/abuild/rpmbuild/BUILD/qt-creator-opensource-src-4.13.0-beta1/src/tools/clangrefactoringbackend/source/indexdataconsumer.h:67:10: error: 'bool ClangBackEnd::IndexDataConsumer::handleMacroOccurrence(const clang::IdentifierInfo*, const clang::MacroInfo*, clang::index::SymbolRoleSet, clang::SourceLocation)' marked 'override', but does not override
      [ 691s] bool handleMacroOccurrence(
      [ 691s] ^~~~~~~~~~~~~~~~~~~~~
      [ 691s] In file included from /home/abuild/rpmbuild/BUILD/qt-creator-opensource-src-4.13.0-beta1/src/tools/clangrefactoringbackend/source/collectsymbolsaction.cpp:26:0:
      [ 691s] /home/abuild/rpmbuild/BUILD/qt-creator-opensource-src-4.13.0-beta1/src/tools/clangrefactoringbackend/source/collectsymbolsaction.h: In constructor 'ClangBackEnd::CollectSymbolsAction::CollectSymbolsAction(std::shared_ptr<ClangBackEnd::IndexDataConsumer>)':
      [ 691s] /home/abuild/rpmbuild/BUILD/qt-creator-opensource-src-4.13.0-beta1/src/tools/clangrefactoringbackend/source/collectsymbolsaction.h:51:90: error: too few arguments to function 'std::unique_ptr<clang::FrontendAction> clang::index::createIndexingAction(std::shared_ptr<clang::index::IndexDataConsumer>, clang::index::IndexingOptions, std::unique_ptr<clang::FrontendAction>)'
      [ 691s] clang::index::createIndexingAction(indexDataConsumer, createIndexingOptions()))
      [ 691s] ^
      [ 691s] In file included from /home/abuild/rpmbuild/BUILD/qt-creator-opensource-src-4.13.0-beta1/src/tools/clangrefactoringbackend/source/collectsymbolsaction.h:39:0,
      [ 691s] from /home/abuild/rpmbuild/BUILD/qt-creator-opensource-src-4.13.0-beta1/src/tools/clangrefactoringbackend/source/collectsymbolsaction.cpp:26:
      [ 691s] /usr/include/clang/Index/IndexingAction.h:55:1: note: declared here
      [ 691s] createIndexingAction(std::shared_ptr<IndexDataConsumer> DataConsumer,
      [ 691s] ^~~~~~~~~~~~~~~~~~~~
      [ 691s] make[2]: *** [src/tools/clangrefactoringbackend/source/CMakeFiles/clangrefactoringbackend_lib.dir/build.make:148: src/tools/clangrefactoringbackend/source/CMakeFiles/clangrefactoringbackend_lib.dir/collectsymbolsaction.cpp.o] Error 1

       

       

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              con Eike Ziller
              cgiboudeaux Christophe Marin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes