[mono] Update offsets-tool python clang binding so it works with newer clang (#86256)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 15 May 2023 18:46:12 +0000 (20:46 +0200)
committerGitHub <noreply@github.com>
Mon, 15 May 2023 18:46:12 +0000 (20:46 +0200)
commit63e677701d35c7e2dad4fe74a84eb935cd396155
tree360364ccfff2f5fda38dffeef799fb3b6502015c
parentb2b5fef414c0d3331060d0a2568308d8285e3698
[mono] Update offsets-tool python clang binding so it works with newer clang (#86256)

They introduced a breaking change to CursorKind.TRANSLATION_UNIT in https://github.com/llvm/llvm-project/commit/bb83f8e70bd1d56152f02307adacd718cd67e312, which means we hit an issue when using the binding against a newer clang. Update the binding to the latest upstream and add a tweak so it still works with older clang versions.
src/mono/mono/tools/offsets-tool/clang/cindex.py