diff options
author | Dávid Bolvanský <david.bolvansky@gmail.com> | 2022-03-15 00:19:40 +0300 |
---|---|---|
committer | Dávid Bolvanský <david.bolvansky@gmail.com> | 2022-03-15 00:19:55 +0300 |
commit | a717e9d47e64682bf45e6a998d11d76f47454f12 (patch) | |
tree | c2e1443927c77578350e4182d132ed891e6351e4 /clang | |
parent | c30e6447c0225f675773d07f2b6d4e3c2b962155 (diff) |
[AttrDocs] try to fix build
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/Basic/AttrDocs.td | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td index ee5be4c0bc41..d7cd31174bc5 100644 --- a/clang/include/clang/Basic/AttrDocs.td +++ b/clang/include/clang/Basic/AttrDocs.td @@ -6260,7 +6260,11 @@ attribute associated with it (the attribute applies to the declaration, not the statement in that case). So this use case will not work: .. code-block:: c - [[clang::always_inline]] int i = bar(); + + int example(void) { + [[clang::always_inline]] int i = bar(); + return i; + } This attribute does not guarantee that inline substitution actually occurs. |