llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Enable cfg-lifetime option by default

Open benedekaibas opened this issue 2 months ago • 2 comments

Currently the analyzer needs cfg-lifetime=true passed as a flag to the CLI. This makes the UseAfterLifetimeEnd checker "harder" to use since just writing running the analyzer with the default command does not exercise the lifetime end CFG elements therefore the UseAfterLifetimeEnd cannot analyze.

This issue should be fixed by turning the cfg-lifetime=true on by default. However, this does not mean just turning it from false to true in the source, but needs careful handling!

benedekaibas avatar Sep 11 '26 08:09 benedekaibas

@llvm/issue-subscribers-clang-static-analyzer

Author: Benedek Kaibas (benedekaibas)

Currently the analyzer needs `cfg-lifetime=true` passed as a flag to the CLI. This makes the `UseAfterLifetimeEnd` checker "harder" to use since just writing running the analyzer with the default command does not exercise the lifetime end CFG elements therefore the `UseAfterLifetimeEnd` cannot analyze.

This issue should be fixed by turning the cfg-lifetime=true on by default. However, this does not mean just turning it from false to true in the source, but needs careful handling!

This issue got moved somehow from my private task board to the llvm issues. I close it as not-planned since it is related to my own work.

benedekaibas avatar Sep 11 '26 09:09 benedekaibas