aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorDonatNagyE <donat.nagy@ericsson.com>2023-12-12 16:29:37 +0100
committerGitHub <noreply@github.com>2023-12-12 16:29:37 +0100
commitc873f77e87a9ebd02f94d6b9d46e84d43e1ceb38 (patch)
tree149735a4b23efd1608621c8e35c593fec1c47d10 /llvm/lib/Transforms/Utils/Local.cpp
parent6d46337e13f943e331ae4c048e2456347fc83174 (diff)
downloadllvm-c873f77e87a9ebd02f94d6b9d46e84d43e1ceb38.zip
llvm-c873f77e87a9ebd02f94d6b9d46e84d43e1ceb38.tar.gz
llvm-c873f77e87a9ebd02f94d6b9d46e84d43e1ceb38.tar.bz2
[analyzer] Move alpha checker EnumCastOutOfRange to optin (#67157)
The checker EnumCastOutOfRange verifies the (helpful, but not standard-mandated) design rule that integer to enum casts should not produce values that don't have a corresponding enumerator. As it was improved and cleaned up by recent changes, this commit renames it from `alpha.cplusplus.EnumCastOutOfRange` to `optin.core.EnumCastOutOfRange` to reflect that it's no longer alpha quality. As this checker handles a basic language feature (which is also present in plain C), I moved it to a "core" subpackage within "optin". In addition to the renaming, this commit cleans up the documentation in `checkers.rst` and adds the new example code to a test file to ensure that it's indeed producing the behavior claimend in the documentation.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions