File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
clang/include/clang/Basic Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3821,13 +3821,13 @@ The ``gnu_inline`` changes the meaning of ``extern inline`` to use GNU inline
3821
3821
semantics, meaning:
3822
3822
3823
3823
* If any declaration that is declared ``inline`` is not declared ``extern``,
3824
- then the ``inline`` keyword is just a hint. In particular, an out-of-line
3825
- definition is still emitted for a function with external linkage, even if all
3826
- call sites are inlined, unlike in C99 and C++ inline semantics.
3824
+ then the ``inline`` keyword is just a hint. In particular, an out-of-line
3825
+ definition is still emitted for a function with external linkage, even if all
3826
+ call sites are inlined, unlike in C99 and C++ inline semantics.
3827
3827
3828
3828
* If all declarations that are declared ``inline`` are also declared
3829
- ``extern``, then the function body is present only for inlining and no
3830
- out-of-line version is emitted.
3829
+ ``extern``, then the function body is present only for inlining and no
3830
+ out-of-line version is emitted.
3831
3831
3832
3832
Some important consequences: ``static inline`` emits an out-of-line
3833
3833
version if needed, a plain ``inline`` definition emits an out-of-line version
You can’t perform that action at this time.
0 commit comments