[clang] a717e9d - [AttrDocs] try to fix build
Dávid Bolvanský via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 14 14:20:02 PDT 2022
Author: Dávid Bolvanský
Date: 2022-03-14T22:19:55+01:00
New Revision: a717e9d47e64682bf45e6a998d11d76f47454f12
URL: https://github.com/llvm/llvm-project/commit/a717e9d47e64682bf45e6a998d11d76f47454f12
DIFF: https://github.com/llvm/llvm-project/commit/a717e9d47e64682bf45e6a998d11d76f47454f12.diff
LOG: [AttrDocs] try to fix build
Added:
Modified:
clang/include/clang/Basic/AttrDocs.td
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index ee5be4c0bc412..d7cd31174bc5b 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.
More information about the cfe-commits
mailing list