Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/clang
diff options
context:
space:
mode:
authorDávid Bolvanský <david.bolvansky@gmail.com>2022-03-15 00:19:40 +0300
committerDávid Bolvanský <david.bolvansky@gmail.com>2022-03-15 00:19:55 +0300
commita717e9d47e64682bf45e6a998d11d76f47454f12 (patch)
treec2e1443927c77578350e4182d132ed891e6351e4 /clang
parentc30e6447c0225f675773d07f2b6d4e3c2b962155 (diff)
[AttrDocs] try to fix build
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Basic/AttrDocs.td6
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.