[clang] 92b5601 - [clang] Fix documentation markup in the Clang release notes and language extension docs. (#85310)

via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 15 08:30:47 PDT 2024


Author: Tom Honermann
Date: 2024-03-15T11:30:43-04:00
New Revision: 92b56011e6b61e7dc1628c0431ece432f282b3cb

URL: https://github.com/llvm/llvm-project/commit/92b56011e6b61e7dc1628c0431ece432f282b3cb
DIFF: https://github.com/llvm/llvm-project/commit/92b56011e6b61e7dc1628c0431ece432f282b3cb.diff

LOG: [clang] Fix documentation markup in the Clang release notes and language extension docs. (#85310)

Added: 
    

Modified: 
    clang/docs/LanguageExtensions.rst
    clang/docs/ReleaseNotes.rst

Removed: 
    


################################################################################
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.
 

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