diff options
author | Akira Hatanaka <ahatanak@gmail.com> | 2025-04-29 18:37:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-29 18:37:57 -0700 |
commit | 6bb4ce0f6ff462b58bacc8dbc47719b7009f9b18 (patch) | |
tree | bb1019718f1de286eea7f60dba5ed5994a9b1f24 /clang/unittests/Format/ConfigParseTest.cpp | |
parent | a01a5b82dc89d427eada7f3b4d2f3e42ef50ae91 (diff) | |
download | llvm-6bb4ce0f6ff462b58bacc8dbc47719b7009f9b18.zip llvm-6bb4ce0f6ff462b58bacc8dbc47719b7009f9b18.tar.gz llvm-6bb4ce0f6ff462b58bacc8dbc47719b7009f9b18.tar.bz2 |
Silence spurious -Wnontrivial-memcall warnings in C mode (#137429)
clang currently issues a warning when memset is used on a struct that
contains an address-discriminated pointer field, even though this is
entirely valid behavior.
For example:
```
struct S {
int * __ptrauth(1, 1, 100) p;
} s;
memset(&s, 0, sizeof(struct S));
```
Only allow the warning to be emitted in C++ mode to silence the warning.
rdar://142495870
Diffstat (limited to 'clang/unittests/Format/ConfigParseTest.cpp')
0 files changed, 0 insertions, 0 deletions