KDAB / codebrowser

Woboq CodeBrowser
http://woboq.com/codebrowser.html
Other
1.1k stars 161 forks source link

Error with /usr/include/llvm-7/llvm/ADT/DenseMap.h while compiling #119

Open m-piatkowski-dev opened 8 months ago

m-piatkowski-dev commented 8 months ago

Hi Guys, I have run build like it is in instruction: image

and get this error, any idea what should be done?? error log is longer but most of info is the same:

Scanning dependencies of target codebrowser_generator
[  7%] Building CXX object generator/CMakeFiles/codebrowser_generator.dir/main.cpp.o
In file included from /usr/lib/llvm-7/include/clang/Basic/Diagnostic.h:23:0,
                 from /usr/lib/llvm-7/include/clang/AST/DeclarationName.h:17,
                 from /usr/lib/llvm-7/include/clang/AST/DeclBase.h:18,
                 from /usr/lib/llvm-7/include/clang/AST/Decl.h:18,
                 from /usr/lib/llvm-7/include/clang/AST/ASTTypeTraits.h:20,
                 from /usr/lib/llvm-7/include/clang/AST/ASTContext.h:18,
                 from /xxx/xxxx/$USER/codebrowser/generator/main.cpp:23:
/usr/include/llvm-7/llvm/ADT/DenseMap.h: In instantiation of ‘void llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::destroyAll() [with DerivedT = llvm::DenseMap<clang::SourceLocation, std::__cxx11::basic_string<char> >; KeyT = clang::SourceLocation; ValueT = std::__cxx11::basic_string<char>; KeyInfoT = llvm::DenseMapInfo<clang::SourceLocation>; BucketT = llvm::detail::DenseMapPair<clang::SourceLocation, std::__cxx11::basic_string<char> >]’:
/usr/include/llvm-7/llvm/ADT/DenseMap.h:680:5:   required from ‘llvm::DenseMap<KeyT, ValueT, KeyInfoT, BucketT>::~DenseMap() [with KeyT = clang::SourceLocation; ValueT = std::__cxx11::basic_string<char>; KeyInfoT = llvm::DenseMapInfo<clang::SourceLocation>; BucketT = llvm::detail::DenseMapPair<clang::SourceLocation, std::__cxx11::basic_string<char> >]’
 /xxx/xxxx/$USER/codebrowser/generator/browserastvisitor.h:362:50:   required from here
/usr/include/llvm-7/llvm/ADT/DenseMap.h:332:29: error: ‘isEqual’ is not a member of ‘llvm::DenseMapInfo<clang::SourceLocation>’
       if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
            ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/llvm-7/llvm/ADT/DenseMap.h:333:29: error: ‘isEqual’ is not a member of ‘llvm::DenseMapInfo<clang::SourceLocation>’
           !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
Waqar144 commented 8 months ago

Can you try with a newer clang version?

m-piatkowski-dev commented 8 months ago

which version do You propose?

Waqar144 commented 8 months ago

clang 14+