[clang] [analyzer] Model GCC 'cleanup' attribute function calls (PR #221110)
Benedek Kaibas via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 1 02:02:54 PST 2026
benedekaibas wrote:
[c8c0047](https://github.com/llvm/llvm-project/pull/221110/commits/c8c0047be09d71b1f5cbe98e83b38ee9bf6bba6e) Thank you for adding the test cases, I have checked them and the ordering looks correct to me. It's great we do not have to deal with that :).
> Please note that the cleanup CFG element is added by https://github.com/llvm/llvm-project/commit/ad4a5130277776d8f15f40ac5a6dede6ad3aabfb.
This PR just extends CFGCleanupFunction to fix the diagnostic location issue raised above.
Yes, you are right! Sorry I was tired when I was reading the PR's description. However, testing whether the order of the CFG elements is in the correct, reversed order still makes sense because you change how the cleanup CFG elements are constructed. I see you have added the test cases, thank you for that!
https://github.com/llvm/llvm-project/pull/221110
More information about the cfe-commits
mailing list