Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.04 KB | None | 0 0
  1. $ make check gb_SUPPRESS_TESTS=y
  2. make -j 8 -f /home/vmiklos/git/libreoffice/master-clang/compilerplugins/Makefile-clang.mk compilerplugins
  3. make[1]: Entering directory '/home/vmiklos/git/libreoffice/master-clang'
  4. [GEN] compilerplugins/clang/sharedvisitor/analyzer
  5. /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/analyzer.cxx:80:40: error: reference to 'PointerType' is ambiguous
  6. if (auto const t = type->getAs<PointerType>())
  7. ^
  8. /usr/include/clang/AST/TypeNodes.def:64:1: note: candidate found by name lookup is 'clang::PointerType'
  9. TYPE(Pointer, Type)
  10. ^
  11. /usr/include/clang/AST/ASTFwd.h:27:35: note: expanded from macro 'TYPE'
  12. #define TYPE(DERIVED, BASE) class DERIVED##Type;
  13. ^
  14. <scratch space>:60:1: note: expanded from here
  15. PointerType
  16. ^
  17. /usr/include/llvm/IR/DerivedTypes.h:467:7: note: candidate found by name lookup is 'llvm::PointerType'
  18. class PointerType : public Type {
  19. ^
  20. /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/analyzer.cxx:80:40: error: reference to 'PointerType' is ambiguous
  21. if (auto const t = type->getAs<PointerType>())
  22. ^
  23. /usr/include/clang/AST/TypeNodes.def:64:1: note: candidate found by name lookup is 'clang::PointerType'
  24. TYPE(Pointer, Type)
  25. ^
  26. /usr/include/clang/AST/ASTFwd.h:27:35: note: expanded from macro 'TYPE'
  27. #define TYPE(DERIVED, BASE) class DERIVED##Type;
  28. ^
  29. <scratch space>:60:1: note: expanded from here
  30. PointerType
  31. ^
  32. /usr/include/llvm/IR/DerivedTypes.h:467:7: note: candidate found by name lookup is 'llvm::PointerType'
  33. class PointerType : public Type {
  34. ^
  35. /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/analyzer.cxx:83:45: error: no member named 'getPointeeType' in 'llvm::PointerType'
  36. context_->getPointerType(t->getPointeeType().getUnqualifiedType()),
  37. ~ ^
  38. In file included from /home/vmiklos/git/libreoffice/master-clang/compilerplugins/clang/sharedvisitor/analyzer.cxx:11:
  39. In file included from /usr/include/clang/AST/RecursiveASTVisitor.h:17:
  40. In file included from /usr/include/clang/AST/Attr.h:17:
  41. In file included from /usr/include/clang/AST/AttrIterator.h:17:
  42. In file included from /usr/include/clang/Basic/LLVM.h:22:
  43. /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 *'
  44. return To::classof(&Val);
  45. ^~~~
  46. /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
  47. return isa_impl<To, From>::doit(*Val);
  48. ^
  49. /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
  50. return isa_impl_cl<To,FromTy>::doit(Val);
  51. ^
  52. /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
  53. typename simplify_type<SimpleFrom>::SimpleType>::doit(
  54. ^
  55. /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
  56. typename simplify_type<const Y>::SimpleType>::doit(Val);
  57. ^
  58. /usr/include/llvm/Support/Casting.h:334:10: note: in instantiation of function template specialization 'llvm::isa<llvm::PointerType, const clang::Type *>' requested here
  59. return isa<X>(Val) ? cast<X>(Val) : nullptr;
  60. ^
  61. /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
  62. if (const auto *Ty = dyn_cast<T>(this))
  63. ^
  64. /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
  65. if (auto const t = type->getAs<PointerType>())
  66. ^
  67. /usr/include/llvm/IR/DerivedTypes.h:498:35: note: passing argument to parameter 'T' here
  68. static bool classof(const Type *T) {
  69. ^
  70. 4 errors generated.
  71. 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
  72. make[1]: Leaving directory '/home/vmiklos/git/libreoffice/master-clang'
  73. make: *** [/home/vmiklos/git/libreoffice/master-clang/compilerplugins/Makefile.mk:25: compilerplugins] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement