libclang: how to visit implicit declarations. #122257
Labels
clang:as-a-library
libclang and C++ API
question
A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Consider simple
u.h
headerclang -Xclang -ast-dump -fsyntax-only
printsNotice, there is implicit fielddecl for
struct u::(anonymous ...)
as well as (implicit?)IndirectFieldDecl
s.However, when using
libclang
interface, in particular, clang_visitChildren only explicit declarations are visiible. I.e. we can only see first two declarations,big 'int'
andstruct definition
.In some cases it's very inconvenient to work with source code with tagless and/or field-nameless substructures.
Is there a way to also traverse implicit declarations?
The text was updated successfully, but these errors were encountered: