[cfe-users] create not a member of clang::ast_type_traits::
Ziemowit Laski via cfe-users
cfe-users at lists.llvm.org
Sun Oct 20 12:13:27 PDT 2019
Hello,
This question is a variant of http://lists.llvm.org/pipermail/cfe-dev/2016-June/049613.html. I'm also new to Clang/LLVM.
I'm working with libtooling (I think) and am trying to use the ASTContext::getParents() function like so:
const clang::Decl *decl = ...;
auto it = Context.getParents(decl).begin();
This immediately triggers a compile error:
...\llvm-project\clang\include\clang/AST/ASTTypeTraits.h(217): error C2039: 'create': is not a member of 'clang::ast_type_traits::DynTypedNode::BaseConverter<T,void>'
If I comment out the `auto it` like, compilation succeeds.
Does anyone have any idea as to what's going on?
Many thanks,
--Zem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20191020/8c4fdb2d/attachment.html>
More information about the cfe-users
mailing list