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

    <tr>
        <th>Summary</th>
        <td>
            FieldDecl::getBitWidthValue api change
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Hello,

I'm the author of a tool which uses libclang.

My tool doesn't compile anymore because of the following pull request.

https://github.com/llvm/llvm-project/pull/117732

The function FieldDecl::getBitWidthValue has changed. Before it was taking a reference to a `const ASTContext &Ctx` now it does not.

I still would like to be able to compile my tools against earlier versions of libclang?

How to do? Is there any define or variable I can check at compile time? e.g. on the libclang version?
I see that CINDEX_VERSION_MINOR hasn't been updated for a while....

Kind regards,
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUk0Fvoz4QxT-NuYz-CEwI5cAhTYuK_mortVV3b9VgD-CtY2dtk7TffmVo1ONqTyBh_97w3hv0Xo2GqGHlNStvEpzDZF2jBTqtyCW9lZ_NHWltGd-zbMeyXcd4dYAwEayHwQ6AEKzVcJ6UmGD25EGrXmg0Y7peuv9cT0hL3jBeBRD2cFSaAM3nwTqCngTOniItsgertT0rM8Jx1hoc_Z7Jhy_aFMLRs2LHeMt4O6owzX0q7IHxVuvT5fHf0dlfJALjbWQw3uZ5VRV8ZbxEkdmIoKyBVpGWNyR0hBa7kcK1Cj-UDNMr6plgQg9iQjOSTOGahjiwCnBGDwHf45QIjgZyZARBsIDAtpmwxgfYPb_srQn0EYDx7T58sG0Gxp4jINoBxl7-qwMflNZwtrOWoNX7wuoJsNfL68W0w2qnBxxRRRFa84ITOa-s8dHGSwSsaFf8nT1HiLSsaKHz0We3BACSBmUIrIMTOrWodSDQgJhIvAN-xxXUgeJ1SscUrFmyughd1FfBDjwRhAkD7LuHm9ufb6-3T8_d48Pbfffw-BQ9XZvQExmYjxIDSRisA4xF0pSm6Zcv_ysjwdGITnrG94lsClkXNSbU5FVZFmVd53kyNX3Pq7rc9EOxqYcho7LY9HVBJZaZ3BZVnaiGZ7zMrvJtXpZXRZ4i8hw3m1wOA9VlX7FNRgdUOo0FSq0bE-X9TE1eFvU2SzT2pP2yLJwbOsPylXEed8c1S-v6efRsk2nlg__GBBU0NX_rGR7VV8-S2enmn3u-jONj09d5Tw3_EwAA__8fj0f9">