Skip to content

Feature request: Expose "shouldVisitTemplateInstantiations" option in libclang (and the python bindings) #59725

@trelau

Description

@trelau

Hello,

I'm using libclang and the associated Python bindings to parse C++ headers and generate pybind11 source code. The library I am wrapping with Python makes heavy use of class templates and I was wondering if setting "shouldVisitTemplateInstantiations" to true would make the process easier. Perhaps an option in the libclang Python library (with default to false to keep current behavior)? This is the line in the c++ code I'd like to set to true from the Python bindings https://clang.llvm.org/doxygen/RecursiveASTVisitor_8h_source.html#l00167

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:as-a-librarylibclang and C++ APIenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions