[clang] [analyzer] Suppress core.FixedAddressDereference reports with volatile pointee (PR #181644)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 17 11:40:59 PST 2026
================
@@ -50,3 +50,21 @@ void test4() {
*x = 3; // expected-warning{{Dereference of a fixed address (loaded from variable 'x')}} \
// expected-note{{Dereference of a fixed address (loaded from variable 'x')}}
}
+
+void suppress_volatile_pointee(void) {
----------------
steakhal wrote:
I see your point. Technicly it wouldn't change anything, so it wouldn't increase the code coverage. But I see your point of having that use case being represented.
If you don't mind, I would not come back again to this.
https://github.com/llvm/llvm-project/pull/181644
More information about the cfe-commits
mailing list