diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-12-04 10:24:41 +0300 |
|---|---|---|
| committer | Chris Li <sparse@chrisli.org> | 2025-10-15 07:32:06 -0700 |
| commit | dc9efe442b8949234a6599fdc94dc7221dd040e1 (patch) | |
| tree | 7b5c4bb23803c125ad2b06f4b76aa4d894f3a93f /validation/arch/riscv64.c | |
| parent | 610d841da021200788d2200d7bc66f08bcc97c23 (diff) | |
| download | sparse-dev-dc9efe442b8949234a6599fdc94dc7221dd040e1.tar.gz | |
sparse: implement typeof_unqual()
The typeof_unqual() is a c23 operator which is similar to typeof() except
it masks away the qualifiers, ie. MOD_CONST, MOD_VOLATILE and
MOD_RESTRICT. So the implementation of typeof() and typeof_unqual() is
basically the same except that in examine_typeof_helper() we have the mask:
mod &= ~MOD_QUALIFIER;
We will still preserve the MOD_ATOMIC, MOD_NOCAST and MOD_SPECIFIER
modifiers with both typeof() and typeof_unqual().
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Chris Li <sparse@chrisli.org>
Diffstat (limited to 'validation/arch/riscv64.c')
0 files changed, 0 insertions, 0 deletions
