feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Jul 05 2023 : 11:09:47 AM
|
If you turn On the option:
VA Options -> Code Inspection -> Show Unevaluated Checkers
you can now filter the list of Code Inspection checkers with the string "uninitialized", which is bringing up 8 entries for me. Without looking up the details of how these work I am not sure how much they will help, but "Check for blocks that capture uninitialized values" sounds interesting. Unfortunately the documentation for this check is a little sparse:
https://clang.llvm.org/extra//clang-tidy/checks/clang-analyzer/core.uninitialized.CapturedBlockVariable.html
which is to say completely empty. So you will have to have a go and see how much help these checks are.
You may also want to make sure that the Code Inspection:
Find manually-defined constructor definitions that do not initialize all fields
is enabled since this will help. |
zen is the art of being at one with the two'ness |
|
|