diff options
Diffstat (limited to 'spec/rtems/basedefs/req/alias-0.yml')
-rw-r--r-- | spec/rtems/basedefs/req/alias-0.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/req/alias-0.yml b/spec/rtems/basedefs/req/alias-0.yml new file mode 100644 index 00000000..3a788e89 --- /dev/null +++ b/spec/rtems/basedefs/req/alias-0.yml @@ -0,0 +1,25 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: requirement-refinement + uid: ../if/alias +non-functional-type: interface +rationale: null +references: [] +requirement-type: non-functional +text: | + When argument ${../if/alias:/params[0]/name} is a name of a function, + and the macro ${../if/alias:/name} call is in the same compilation unit + as the function, + and the macro is not used in block scope, + and the macro is used in this form: + ``<return-type> newname([argument-type-list]) ${../if/alias:/name}(oldname)``;, + and the ``<return-type>`` and ``argument-type-list`` match the + signature of the function ``oldname``, + and the code is compiled with the GNU C compiler, + the ${../if/alias:/name} macro shall cause the compiler to create + an additional name (``newname`` in the syntax) for the function + given as argument ${../if/alias:/params[0]/name}. +type: requirement |