summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/inline-routine-0.yml
diff options
context:
space:
mode:
authorFrank Kühndel <frank.kuehndel@embedded-brains.de>2020-12-02 11:17:34 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-12-09 08:13:51 +0100
commit6856765a1d447ef914887a8279b3e12ac8775dee (patch)
tree703b5fc092314eeed7fd4f262c2b7e7cccff95cb /spec/rtems/basedefs/req/inline-routine-0.yml
parentconfig.yml: Add extra file (diff)
downloadrtems-central-6856765a1d447ef914887a8279b3e12ac8775dee.tar.bz2
spec: Requirements and validation for basedefs.h
Diffstat (limited to 'spec/rtems/basedefs/req/inline-routine-0.yml')
-rw-r--r--spec/rtems/basedefs/req/inline-routine-0.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/req/inline-routine-0.yml b/spec/rtems/basedefs/req/inline-routine-0.yml
new file mode 100644
index 00000000..3d74a129
--- /dev/null
+++ b/spec/rtems/basedefs/req/inline-routine-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/inline-routine
+non-functional-type: interface
+rationale: |
+ ``inline`` and ``__inline__`` have the same effect at least for the
+ GNU C compiler. ``__inline__`` works even if the GNU C compiler
+ is invoked with the ``-ansi``, or ``-std`` flags.
+
+ The compiler may still emit code for a function defined or declared
+ with ``static inline`` or ``static __inline__``. Therefore,
+ if you want to put an inline function definition into a header
+ file, consider ``extern inline`` instead (see the compiler
+ documentation).
+references: []
+requirement-type: non-functional
+text: |
+ The ${../if/inline-routine:/name} macro shall evaluate
+ to the keywords ``static inline`` or ``static __inline__``
+ which ever variant is available to the used compiler.
+type: requirement