<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/59725>59725</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Feature request: Expose "shouldVisitTemplateInstantiations" option in libclang (and the python bindings)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          trelau
      </td>
    </tr>
</table>

<pre>
    Hello,

I'm using libclang and the associated Python bindings to parse C++ headers and generating 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
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU8FyqzgQ_BpxmYoLhLHhwMFJllrfUruuvaYEGpA2QmI1kh3__ZaI7VTe6V2Aw3T3dPcgiPRkEVtWPbPqNRMxKOfb4NGImPVOXts_0RjH-AvLX1l--HoeGd_PEEnbCYzuByPsBMJKCApBELlBi4AS3q5BOQu9tlLbiSA4WIQnhBfGnxl_BoVCoqcVO6FFL0LiXK4JUhRALvoBYXASN3BSmNS88Fc4gpjh4sWypPmLDuouNosPpER8vkIkBDfCYAQRBJwXIwJ-qR3hIgguzkr0iUKPQBhWdcY5KReN_EeTDqcb7GgpCBu0CNpZYpwnN8FHhEuaXXVX_4t3AxIBCtLoN_CGXoklqYJbEhi0XQcfyd02v3tjvF4NSRxFNCHpjMIQpo8PxAWG6D3aAD0qcdbOM96wsoOT0gSabtwW7zrDLeyUIqTqJBj9sdIRhoeN0bt5nf-1NRXCQqw8MN4x3q0rb4w5zxvnJ8Y76T6vE1rGu79wiJ70GQ9_n9bsnH-v1ftXiRsVZsN4afK82O0z2ZayKRuRYVvs9rxodnldZ6rllaxHMdaiavqB530-NkNTyipvZF3uK5npluecF5zXOa-223pTDMV-W-VVVY3butmNbJvjLLR57Jhpooht1ex5lRnRo6H7vfs2DT31cSK2zY2mQN-woIPBtkMRokfw-F9ECqw8wB-fiyP87Tv5bv3ROOP1_XdZfqbNeJNFb9qfoU86qNhvBjcz3qUFb6-nxbt_cQiMd6tJYrxbff4fAAD__z8PUU8">