diff options
Diffstat (limited to 'spec/rtems/basedefs/if/dequalify-depthx.yml')
-rw-r--r-- | spec/rtems/basedefs/if/dequalify-depthx.yml | 46 |
1 files changed, 29 insertions, 17 deletions
diff --git a/spec/rtems/basedefs/if/dequalify-depthx.yml b/spec/rtems/basedefs/if/dequalify-depthx.yml index 15539991..dc847f0a 100644 --- a/spec/rtems/basedefs/if/dequalify-depthx.yml +++ b/spec/rtems/basedefs/if/dequalify-depthx.yml @@ -6,26 +6,38 @@ copyrights: - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) - Copyright (C) 2014 Paval Pisa definition: - default: | - ( (${.:/params[1]/name}) (${/c/if/uintptr_t:/name}) (const volatile void *)( ${.:/params[2]/name} ) ) + default: + attributes: null + body: | + ( (${.:/params[1]/name}) (${/c/if/uintptr_t:/name}) (const volatile void *)( ${.:/params[2]/name} ) ) + params: [] + return: null variants: - - definition: | - ( const_cast<${.:/params[1]/name}>( ${.:/params[2]/name} ) ) + - definition: + attributes: null + body: | + ( const_cast<${.:/params[1]/name}>( ${.:/params[2]/name} ) ) + params: [] + return: null enabled-by: - defined(${/compiler/if/cplusplus:/name}) - - definition: | - ${/compiler/if/builtin-choose-expr:/name}( - ${/compiler/if/builtin-types-compatible-p:/name}( - ${typeof-refx:/name}( ${.:/params[0]/name}, ${.:/params[2]/name} ), - ${typeof-refx:/name}( ${.:/params[0]/name}, ${.:/params[1]/name} ) - ) || - ${/compiler/if/builtin-types-compatible-p:/name}( - ${.:/params[1]/name}, - void * - ), - (${.:/params[1]/name}) ( ${.:/params[2]/name} ), - ${/score/basedefs/if/dequalify-types-not-compatible:/name}() - ) + - definition: + attributes: null + body: | + ${/compiler/if/builtin-choose-expr:/name}( + ${/compiler/if/builtin-types-compatible-p:/name}( + ${typeof-refx:/name}( ${.:/params[0]/name}, ${.:/params[2]/name} ), + ${typeof-refx:/name}( ${.:/params[0]/name}, ${.:/params[1]/name} ) + ) || + ${/compiler/if/builtin-types-compatible-p:/name}( + ${.:/params[1]/name}, + void * + ), + (${.:/params[1]/name}) ( ${.:/params[2]/name} ), + ${/score/basedefs/if/dequalify-types-not-compatible:/name}() + ) + params: [] + return: null enabled-by: - defined(${/compiler/if/gnuc:/name}) description: null |