aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/c99-variable-length-array.cpp
diff options
context:
space:
mode:
authorFélix-Antoine Constantin <felix-antoine.constantin@comact.com>2025-09-30 11:27:46 -0400
committerGitHub <noreply@github.com>2025-09-30 18:27:46 +0300
commit042540ab66e5ebee650e45ba6bfa4e68a045ff0a (patch)
treee80db1fae6aea0d509b29cf57205dffa1db2f879 /clang/test/CodeGenCXX/c99-variable-length-array.cpp
parentccd06e48098b826cafcc2e553a8cb9081e0a06dc (diff)
downloadllvm-042540ab66e5ebee650e45ba6bfa4e68a045ff0a.zip
llvm-042540ab66e5ebee650e45ba6bfa4e68a045ff0a.tar.gz
llvm-042540ab66e5ebee650e45ba6bfa4e68a045ff0a.tar.bz2
[clang-tidy] New Option Invalid Enum Default Initialization (#159220)
Added a new Option IgnoredEnums to bugprone invalid enum default initialization to limit the scope of the analysis. This is needed to remove warnings on enums like std::errc where the enum doesn't define a value of 0, but is still used to check if some function calls like std::from_chars are executed correctly. The C++ Standard section 22.13.2 mentions the following : "[...] If the member ec of the return value is such that the value is equal to the value of a value-initialized errc, the conversion was successful [...]" This means that a call to `std::errc{}` is clearly defined by the standard and should not raise any warning under this check.
Diffstat (limited to 'clang/test/CodeGenCXX/c99-variable-length-array.cpp')
0 files changed, 0 insertions, 0 deletions