RunTime Clang version in plugin

I’m working on adding a version check mechanism in a clang plugin is there any way I can get the runtime version of clang (assuming I am using a different version of clang at runtime than the one used to build the plugin). I have tried clang_major, clang_minor macros but they seem to store values of the version with which the clang plugin was built. I am thus looking for a way to get the runtime clang version inside the plugin code.
Thanks in advance

1 Like