[clang] [clang] Fix Clang language extension documentation markup for __builtin_arm_trap. (PR #85310)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 14 14:34:30 PDT 2024
https://github.com/tahonermann updated https://github.com/llvm/llvm-project/pull/85310
>From 06f9e13e622f75a6a192c5bbe06e2facd3c0124d Mon Sep 17 00:00:00 2001
From: Tom Honermann <tom.honermann at intel.com>
Date: Thu, 14 Mar 2024 13:55:32 -0700
Subject: [PATCH 1/2] [clang] Fix Clang language extension documentation markup
for __builtin_arm_trap.
---
clang/docs/LanguageExtensions.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst
index 9347703e96e21a..225736009d4869 100644
--- a/clang/docs/LanguageExtensions.rst
+++ b/clang/docs/LanguageExtensions.rst
@@ -3444,7 +3444,7 @@ Query for this feature with ``__has_builtin(__builtin_debugtrap)``.
Query for this feature with ``__has_builtin(__builtin_trap)``.
``__builtin_arm_trap``
-------------------
+----------------------
``__builtin_arm_trap`` is an AArch64 extension to ``__builtin_trap`` which also accepts a compile-time constant value, encoded directly into the trap instruction for later inspection.
>From e88e3fe1f5bea96a3c065e1e6d8305ca2e2ddde5 Mon Sep 17 00:00:00 2001
From: Tom Honermann <tom.honermann at intel.com>
Date: Thu, 14 Mar 2024 14:24:40 -0700
Subject: [PATCH 2/2] [clang] Fix Clang release note documentation markup for
nullability attributes.
---
clang/docs/ReleaseNotes.rst | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 459f6a25aeef7b..dfd88a128941ab 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -205,15 +205,15 @@ Attribute Changes in Clang
to certain C++ class types, such as smart pointers:
``void useObject(std::unique_ptr<Object> _Nonnull obj);``.
- This works for standard library types including ``unique_ptr``, ``shared_ptr``
- and ``function``. See `the attribute reference
-documentation <https://llvm.org/docs/AttributeReference.html#nullability-attributes>`_
-for the full list.
+ This works for standard library types including ``unique_ptr``, ``shared_ptr``,
+ and ``function``. See
+ `the attribute reference documentation <https://llvm.org/docs/AttributeReference.html#nullability-attributes>`_
+ for the full list.
- The ``_Nullable`` attribute can be applied to C++ class declarations:
``template <class T> class _Nullable MySmartPointer {};``.
- This allows the ``_Nullable`` and ``_Nonnull` family of type attributes to
+ This allows the ``_Nullable`` and ``_Nonnull`` family of type attributes to
apply to this class.
Improvements to Clang's diagnostics
More information about the cfe-commits
mailing list