diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2025-04-29 07:06:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-29 07:06:08 -0400 |
commit | df267d77f6cc06608d2fabc2139cabbd99007381 (patch) | |
tree | 60c3f92bb8b71fd99ed0efae6a31c7c03c3ff0b1 /clang/lib/AST/ByteCode/InterpFrame.cpp | |
parent | ebeae6402d9682bae94119c1ad2a1dce4c51d08d (diff) | |
download | llvm-df267d77f6cc06608d2fabc2139cabbd99007381.zip llvm-df267d77f6cc06608d2fabc2139cabbd99007381.tar.gz llvm-df267d77f6cc06608d2fabc2139cabbd99007381.tar.bz2 |
[C] Add new -Wimplicit-int-enum-cast to -Wc++-compat (#137658)
This introduces a new diagnostic group to diagnose implicit casts from
int to an enumeration type. In C, this is valid, but it is not
compatible with C++.
Additionally, this moves the "implicit conversion from enum type to
different enum type" diagnostic from `-Wenum-conversion` to a new group
`-Wimplicit-enum-enum-cast`, which is a more accurate home for it.
`-Wimplicit-enum-enum-cast` is also under `-Wimplicit-int-enum-cast`, as
it is the same incompatibility (the enumeration on the right-hand is
promoted to `int`, so it's an int -> enum conversion).
Fixes #37027
Diffstat (limited to 'clang/lib/AST/ByteCode/InterpFrame.cpp')
0 files changed, 0 insertions, 0 deletions