Open
Description
We have a language option for ABI-compatibility. The user may choose clang release version to generate code compatible with using flag -fclang-abi-compat=
. Currently to bring a new version of known ABI, at least 3 different places need to be modified:
- Add new value to the langopt enum:
- Make sure it is handled here
- Make sure it is parsed correctly here
So, it is at least 3 places that need to be updated every ~6 months when new release is branched. Some of the places are super easy to forget which will cause build fails or bugs like the bug resolved by #144109 several months after ClangABI::Ver20 was introduced.
It would be great to improve this.