Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ make check gb_SUPPRESS_TESTS=y
- make -j 8 -f /home/vmiklos/git/libreoffice/master-clang/compilerplugins/Makefile-clang.mk compilerplugins
- make[1]: Entering directory '/home/vmiklos/git/libreoffice/master-clang'
- [GEN] compilerplugins/clang/sharedvisitor/analyzer
- /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/analyzer.cxx:80:40: error: reference to 'PointerType' is ambiguous
- if (auto const t = type->getAs<PointerType>())
- ^
- /usr/include/clang/AST/TypeNodes.def:64:1: note: candidate found by name lookup is 'clang::PointerType'
- TYPE(Pointer, Type)
- ^
- /usr/include/clang/AST/ASTFwd.h:27:35: note: expanded from macro 'TYPE'
- #define TYPE(DERIVED, BASE) class DERIVED##Type;
- ^
- <scratch space>:60:1: note: expanded from here
- PointerType
- ^
- /usr/include/llvm/IR/DerivedTypes.h:467:7: note: candidate found by name lookup is 'llvm::PointerType'
- class PointerType : public Type {
- ^
- /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/analyzer.cxx:80:40: error: reference to 'PointerType' is ambiguous
- if (auto const t = type->getAs<PointerType>())
- ^
- /usr/include/clang/AST/TypeNodes.def:64:1: note: candidate found by name lookup is 'clang::PointerType'
- TYPE(Pointer, Type)
- ^
- /usr/include/clang/AST/ASTFwd.h:27:35: note: expanded from macro 'TYPE'
- #define TYPE(DERIVED, BASE) class DERIVED##Type;
- ^
- <scratch space>:60:1: note: expanded from here
- PointerType
- ^
- /usr/include/llvm/IR/DerivedTypes.h:467:7: note: candidate found by name lookup is 'llvm::PointerType'
- class PointerType : public Type {
- ^
- /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/analyzer.cxx:83:45: error: no member named 'getPointeeType' in 'llvm::PointerType'
- context_->getPointerType(t->getPointeeType().getUnqualifiedType()),
- ~ ^
- In file included from /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/analyzer.cxx:11:
- In file included from /usr/include/clang/AST/RecursiveASTVisitor.h:17:
- In file included from /usr/include/clang/AST/Attr.h:17:
- In file included from /usr/include/clang/AST/AttrIterator.h:17:
- In file included from /usr/include/clang/Basic/LLVM.h:22:
- /usr/include/llvm/Support/Casting.h:59:24: error: cannot initialize a parameter of type 'const llvm::Type *' with an rvalue of type 'const clang::Type *'
- return To::classof(&Val);
- ^~~~
- /usr/include/llvm/Support/Casting.h:107:32: note: in instantiation of member function 'llvm::isa_impl<llvm::PointerType, clang::Type, void>::doit' requested here
- return isa_impl<To, From>::doit(*Val);
- ^
- /usr/include/llvm/Support/Casting.h:133:36: note: in instantiation of member function 'llvm::isa_impl_cl<llvm::PointerType, const clang::Type *>::doit' requested here
- return isa_impl_cl<To,FromTy>::doit(Val);
- ^
- /usr/include/llvm/Support/Casting.h:124:56: note: in instantiation of member function 'llvm::isa_impl_wrap<llvm::PointerType, const clang::Type *, const clang::Type *>::doit' requested here
- typename simplify_type<SimpleFrom>::SimpleType>::doit(
- ^
- /usr/include/llvm/Support/Casting.h:144:70: note: in instantiation of member function 'llvm::isa_impl_wrap<llvm::PointerType, const clang::Type *const, const clang::Type *>::doit' requested here
- typename simplify_type<const Y>::SimpleType>::doit(Val);
- ^
- /usr/include/llvm/Support/Casting.h:334:10: note: in instantiation of function template specialization 'llvm::isa<llvm::PointerType, const clang::Type *>' requested here
- return isa<X>(Val) ? cast<X>(Val) : nullptr;
- ^
- /usr/include/clang/AST/Type.h:6531:24: note: in instantiation of function template specialization 'llvm::dyn_cast<llvm::PointerType, const clang::Type>' requested here
- if (const auto *Ty = dyn_cast<T>(this))
- ^
- /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/analyzer.cxx:80:34: note: in instantiation of function template specialization 'clang::Type::getAs<llvm::PointerType>' requested here
- if (auto const t = type->getAs<PointerType>())
- ^
- /usr/include/llvm/IR/DerivedTypes.h:498:35: note: passing argument to parameter 'T' here
- static bool classof(const Type *T) {
- ^
- 4 errors generated.
- make[1]: *** [/home/vmiklos/git/libreoffice/master-clang/compilerplugins/Makefile-clang.mk:267: /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/analyzer] Error 1
- make[1]: Leaving directory '/home/vmiklos/git/libreoffice/master-clang'
- make: *** [/home/vmiklos/git/libreoffice/master-clang/compilerplugins/Makefile.mk:25: compilerplugins] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement