llvm-project
684c26c8 - [analyzer] Remove redundant "returned to caller" suffix for compound literal in StackAddressEscape

Commit
343 days ago
[analyzer] Remove redundant "returned to caller" suffix for compound literal in StackAddressEscape This patch simplifies the diagnostic message in the core.StackAddrEscape for stack memory associated with compound literals by removing the redundant "returned to caller" suffix. Example: https://godbolt.org/z/KxM67vr7c ```c // clang --analyze -Xanalyzer -analyzer-checker=core.StackAddressEscape void* compound_literal() { return &(unsigned short){((unsigned short)0x22EF)}; } ``` warning: Address of stack memory associated with a compound literal declared on line 2 **returned to caller returned to caller** [core.StackAddressEscape]
Author
Parents
Loading