https://github.com/vbvictor updated 
https://github.com/llvm/llvm-project/pull/174686

>From 1ab3ff234717ab2704d63aee63fba8d54be0448e Mon Sep 17 00:00:00 2001
From: Victor Baranov <[email protected]>
Date: Mon, 5 Jan 2026 04:33:03 +0300
Subject: [PATCH 1/3] [clang-tidy][NFC] Improve readabilty of Release Notes

---
 clang-tools-extra/docs/ReleaseNotes.rst | 129 +++++++++++++++---------
 1 file changed, 81 insertions(+), 48 deletions(-)

diff --git a/clang-tools-extra/docs/ReleaseNotes.rst 
b/clang-tools-extra/docs/ReleaseNotes.rst
index a154b4e08fae8..4a3c1bb40cc2e 100644
--- a/clang-tools-extra/docs/ReleaseNotes.rst
+++ b/clang-tools-extra/docs/ReleaseNotes.rst
@@ -387,13 +387,17 @@ Changes in existing checks
   ``NamePrefixSuffixSilenceDissimilarityTreshold``.
 
 - Improved :doc:`bugprone-exception-escape
-  <clang-tidy/checks/bugprone/exception-escape>` check's handling of lambdas:
-  exceptions from captures are now diagnosed, exceptions in the bodies of
-  lambdas that aren't actually invoked are not. Additionally, fixed an issue
-  where the check wouldn't diagnose throws in arguments to functions or
-  constructors. Added fine-grained configuration via options
-  `CheckDestructors`, `CheckMoveMemberFunctions`, `CheckMain`,
-  `CheckedSwapFunctions`, and `CheckNothrowFunctions`.
+  <clang-tidy/checks/bugprone/exception-escape>` check:
+    
+  - Exceptions from lambda captures are now diagnosed, exceptions in the
+    bodies of lambdas that aren't actually invoked are not. 
+    
+  - Fixed an issue where the check wouldn't diagnose throws in arguments to
+    functions or constructors.
+  
+  - Added fine-grained configuration via options `CheckDestructors`,
+    `CheckMoveMemberFunctions`, `CheckMain`, `CheckedSwapFunctions`, and
+    `CheckNothrowFunctions`.
 
 - Improved :doc:`bugprone-infinite-loop
   <clang-tidy/checks/bugprone/infinite-loop>` check by adding detection for
@@ -435,20 +439,30 @@ Changes in existing checks
   tagged union respectively.
 
 - Improved :doc:`bugprone-throw-keyword-missing
-  <clang-tidy/checks/bugprone/throw-keyword-missing>` check by only considering
-  the canonical types of base classes as written and adding a note on the base
-  class that triggered the warning. Also, fixed an issue where the check
-  wouldn't fire in constructors or (in certain contexts) lambdas.
+  <clang-tidy/checks/bugprone/throw-keyword-missing>` check:
+    
+  - Now it only considers the canonical types of base classes as written.
+  
+  - Added a note on the base class that triggered the warning.
+  
+  - Fixed an issue where the check wouldn't fire in constructors or
+    (in certain contexts) lambdas.
 
 - Improved :doc:`bugprone-unchecked-optional-access
-  <clang-tidy/checks/bugprone/unchecked-optional-access>` check by supporting
-  ``NullableValue::makeValue`` and ``NullableValue::makeValueInplace`` to
-  prevent false-positives for ``BloombergLP::bdlb::NullableValue``. Fixed
-  false-positives for ``bsl::optional`` containing allocator-aware type.
-  Added the `IgnoreValueCalls` option to suppress diagnostics for
-  ``optional::value()`` and the `IgnoreSmartPointerDereference` option to
-  ignore optionals reached via smart-pointer-like dereference, while still
-  diagnosing UB-prone dereferences via ``operator*`` and ``operator->``.
+  <clang-tidy/checks/bugprone/unchecked-optional-access>` check:
+  
+  - Added support for ``NullableValue::makeValue`` and 
+    ``NullableValue::makeValueInplace`` to prevent false-positives for
+    ``BloombergLP::bdlb::NullableValue``.
+  
+  - Fixed false-positives for ``bsl::optional`` containing allocator-aware 
type.
+
+  - Added the `IgnoreValueCalls` option to suppress diagnostics for
+    ``optional::value()``. 
+    
+  - Added the `IgnoreSmartPointerDereference` option to ignore optionals
+    reached via smart-pointer-like dereference, while still diagnosing UB-prone
+    dereferences via ``operator*`` and ``operator->``.
 
 - Improved :doc:`bugprone-unhandled-self-assignment
   <clang-tidy/checks/bugprone/unhandled-self-assignment>` check by adding
@@ -457,14 +471,16 @@ Changes in existing checks
 
 - Improved :doc:`bugprone-unsafe-functions
   <clang-tidy/checks/bugprone/unsafe-functions>` check by hiding the default
-  suffix when the reason starts with the character `>` in the `CustomFunctions`
+  suffix when the reason starts with the character ``>`` in the 
`CustomFunctions`
   option.
 
 - Improved :doc:`bugprone-use-after-move
-  <clang-tidy/checks/bugprone/use-after-move>` check by adding
-  `InvalidationFunctions` option to support custom invalidation functions
-  and `ReinitializationFunctions` option to support custom reinitialization
-  functions.
+  <clang-tidy/checks/bugprone/use-after-move>` check:
+  
+  - Added `InvalidationFunctions` option to support custom invalidation 
functions.
+
+  - Added `ReinitializationFunctions` option to support custom reinitialization
+    functions.
 
 - Improved :doc:`cppcoreguidelines-avoid-non-const-global-variables
   <clang-tidy/checks/cppcoreguidelines/avoid-non-const-global-variables>` check
@@ -487,8 +503,8 @@ Changes in existing checks
 
 - Improved :doc:`cppcoreguidelines-pro-bounds-pointer-arithmetic
   <clang-tidy/checks/cppcoreguidelines/pro-bounds-pointer-arithmetic>` check
-  adding an option to allow pointer arithmetic via prefix/postfix increment or
-  decrement operators.
+  adding `AllowIncrementDecrementOperators` option to allow pointer arithmetic
+  via prefix/postfix increment or decrement operators.
 
 - Improved :doc:`cppcoreguidelines-pro-type-member-init
   <clang-tidy/checks/cppcoreguidelines/pro-type-member-init>` check to
@@ -520,12 +536,15 @@ Changes in existing checks
   - ``for`` loops are supported.
 
 - Improved :doc:`misc-const-correctness
-  <clang-tidy/checks/misc/const-correctness>` check to avoid false
-  positives when pointers is transferred to non-const references
-  and avoid false positives of function pointer and fix false
-  positives on return of non-const pointer and fix false positives on
-  pointer-to-member operator and avoid false positives when the address
-  of a variable is taken to be passed to a function.
+  <clang-tidy/checks/misc/const-correctness>` check:
+  
+  - Fixed false positives when pointers is transferred to non-const references.
+
+  - Fixed false positives of function pointer, on return of non-const pointer, 
+    on pointer-to-member operator.
+  
+  - Fixed false positives when the address of a variable is taken to be passed
+    to a function.
 
 - Improved :doc:`misc-coroutine-hostile-raii
   <clang-tidy/checks/misc/coroutine-hostile-raii>` check by adding the option
@@ -536,11 +555,16 @@ Changes in existing checks
   <clang-tidy/checks/misc/header-include-cycle>` check performance.
 
 - Improved :doc:`misc-use-internal-linkage
-  <clang-tidy/checks/misc/use-internal-linkage>` to suggest giving
-  user-defined types (structs, classes, unions, and enums) internal
-  linkage. Added fine-grained options to control whether the check
-  should diagnose functions, variables, and/or user-defined types.
-  Enabled the check for C.
+  <clang-tidy/checks/misc/use-internal-linkage>` check:
+  
+  - Added suggestion of internal linkage for user-defined types (structs,
+  classes, unions, and enums).
+  
+  - Added fine-grained options `AnalyzeFunctions`, `AnalyzeVariables`, 
+    `AnalyzeTypes` to control whether the check should diagnose functions,
+    variables, and/or user-defined types.
+  
+  - Enabled the check for C.
 
 - Improved :doc:`modernize-avoid-c-arrays
   <clang-tidy/checks/modernize/avoid-c-arrays>` to not diagnose array types
@@ -633,19 +657,28 @@ Changes in existing checks
   filenames) to allow intentional duplicates.
 
 - Improved :doc:`readability-identifier-naming
-  <clang-tidy/checks/readability/identifier-naming>` check by ignoring
-  declarations and macros in system headers. The documentation is also improved
-  to differentiate the general options from the specific ones. Options for
-  fine-grained control over ``constexpr`` variables were added. Added default
-  options which simplify configs by removing the need to specify each
-  identifier kind separately.
+  <clang-tidy/checks/readability/identifier-naming>` check:
+  
+  - Now ignores declarations and macros in system headers.
+  
+  - The documentation is improved to differentiate the general options from the
+  specific ones.
+  
+  - Options for fine-grained control over ``constexpr`` variables were added.
+  
+  - Added default options which simplify configs by removing the need to 
specify
+    each identifier kind separately.
 
 - Improved :doc:`readability-implicit-bool-conversion
-  <clang-tidy/checks/readability/implicit-bool-conversion>` check by correctly
-  adding parentheses when inner expressions are implicitly converted multiple
-  times, enabling the check for C99 and later standards, and allowing implicit
-  conversions from ``bool`` to integer when used as operands of logical
-  operators (``&&``, ``||``) in C.
+  <clang-tidy/checks/readability/implicit-bool-conversion>` check:
+  
+  - Now correctly adds parentheses when inner expressions are implicitly
+  converted multiple times.
+  
+  - Enabled the check for C99 and later standards. 
+  
+  - Now allows implicit conversions from ``bool`` to integer when used as
+    operands of logical operators (``&&``, ``||``) in C.
 
 - Improved :doc:`readability-inconsistent-declaration-parameter-name
   <clang-tidy/checks/readability/inconsistent-declaration-parameter-name>` 
check

>From 23f199727547dd6407da4bbafcbd020ebc264e9c Mon Sep 17 00:00:00 2001
From: Victor Baranov <[email protected]>
Date: Wed, 7 Jan 2026 19:25:58 +0800
Subject: [PATCH 2/3] fix build and feedback

---
 clang-tools-extra/docs/ReleaseNotes.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/clang-tools-extra/docs/ReleaseNotes.rst 
b/clang-tools-extra/docs/ReleaseNotes.rst
index 4a3c1bb40cc2e..02259272473ed 100644
--- a/clang-tools-extra/docs/ReleaseNotes.rst
+++ b/clang-tools-extra/docs/ReleaseNotes.rst
@@ -471,7 +471,7 @@ Changes in existing checks
 
 - Improved :doc:`bugprone-unsafe-functions
   <clang-tidy/checks/bugprone/unsafe-functions>` check by hiding the default
-  suffix when the reason starts with the character ``>`` in the 
`CustomFunctions`
+  suffix when the reason starts with the character `>` in the `CustomFunctions`
   option.
 
 - Improved :doc:`bugprone-use-after-move
@@ -558,7 +558,7 @@ Changes in existing checks
   <clang-tidy/checks/misc/use-internal-linkage>` check:
   
   - Added suggestion of internal linkage for user-defined types (structs,
-  classes, unions, and enums).
+    classes, unions, and enums).
   
   - Added fine-grained options `AnalyzeFunctions`, `AnalyzeVariables`, 
     `AnalyzeTypes` to control whether the check should diagnose functions,
@@ -662,7 +662,7 @@ Changes in existing checks
   - Now ignores declarations and macros in system headers.
   
   - The documentation is improved to differentiate the general options from the
-  specific ones.
+    specific ones.
   
   - Options for fine-grained control over ``constexpr`` variables were added.
   
@@ -673,7 +673,7 @@ Changes in existing checks
   <clang-tidy/checks/readability/implicit-bool-conversion>` check:
   
   - Now correctly adds parentheses when inner expressions are implicitly
-  converted multiple times.
+    converted multiple times.
   
   - Enabled the check for C99 and later standards. 
   

>From 1925fbb96062f9af341ecc788cee59511b3c08f6 Mon Sep 17 00:00:00 2001
From: Victor Baranov <[email protected]>
Date: Wed, 7 Jan 2026 23:58:17 +0800
Subject: [PATCH 3/3] trim trailing whitespace

---
 clang-tools-extra/docs/ReleaseNotes.rst | 68 ++++++++++++-------------
 1 file changed, 34 insertions(+), 34 deletions(-)

diff --git a/clang-tools-extra/docs/ReleaseNotes.rst 
b/clang-tools-extra/docs/ReleaseNotes.rst
index 02259272473ed..ecfe442f113c0 100644
--- a/clang-tools-extra/docs/ReleaseNotes.rst
+++ b/clang-tools-extra/docs/ReleaseNotes.rst
@@ -111,10 +111,10 @@ Hover
 Code completion
 ^^^^^^^^^^^^^^^
 
-- Added a new ``MacroFilter`` configuration option to ``Completion`` to 
-  allow fuzzy-matching with the ``FuzzyMatch`` option when suggesting 
-  macros. ``ExactPrefix`` is the default, which retains previous 
-  behavior of suggesting macros which match the prefix exactly.  
+- Added a new ``MacroFilter`` configuration option to ``Completion`` to
+  allow fuzzy-matching with the ``FuzzyMatch`` option when suggesting
+  macros. ``ExactPrefix`` is the default, which retains previous
+  behavior of suggesting macros which match the prefix exactly.
 
 Code actions
 ^^^^^^^^^^^^
@@ -205,7 +205,7 @@ Improvements to clang-tidy
 
 - Improved :program:`clang-tidy` by adding the `--removed-arg` option to remove
   arguments sent to the compiler when invoking Clang-Tidy. This option was also
-  added to :program:`run-clang-tidy.py` and :program:`clang-tidy-diff.py` and 
+  added to :program:`run-clang-tidy.py` and :program:`clang-tidy-diff.py` and
   can be configured in the config file through the `RemovedArgs` option.
 
 - Deprecated the :program:`clang-tidy` ``zircon`` module. All checks have been
@@ -364,7 +364,7 @@ New check aliases
   keeping initial check as an alias to the new one.
 
 - Renamed :doc:`google-build-namespaces 
<clang-tidy/checks/google/build-namespaces>` to
-  :doc:`misc-anonymous-namespace-in-header 
+  :doc:`misc-anonymous-namespace-in-header
   <clang-tidy/checks/misc/anonymous-namespace-in-header>`
   keeping initial check as an alias to the new one.
 
@@ -388,13 +388,13 @@ Changes in existing checks
 
 - Improved :doc:`bugprone-exception-escape
   <clang-tidy/checks/bugprone/exception-escape>` check:
-    
+
   - Exceptions from lambda captures are now diagnosed, exceptions in the
-    bodies of lambdas that aren't actually invoked are not. 
-    
+    bodies of lambdas that aren't actually invoked are not.
+
   - Fixed an issue where the check wouldn't diagnose throws in arguments to
     functions or constructors.
-  
+
   - Added fine-grained configuration via options `CheckDestructors`,
     `CheckMoveMemberFunctions`, `CheckMain`, `CheckedSwapFunctions`, and
     `CheckNothrowFunctions`.
@@ -440,26 +440,26 @@ Changes in existing checks
 
 - Improved :doc:`bugprone-throw-keyword-missing
   <clang-tidy/checks/bugprone/throw-keyword-missing>` check:
-    
+
   - Now it only considers the canonical types of base classes as written.
-  
+
   - Added a note on the base class that triggered the warning.
-  
+
   - Fixed an issue where the check wouldn't fire in constructors or
     (in certain contexts) lambdas.
 
 - Improved :doc:`bugprone-unchecked-optional-access
   <clang-tidy/checks/bugprone/unchecked-optional-access>` check:
-  
-  - Added support for ``NullableValue::makeValue`` and 
+
+  - Added support for ``NullableValue::makeValue`` and
     ``NullableValue::makeValueInplace`` to prevent false-positives for
     ``BloombergLP::bdlb::NullableValue``.
-  
+
   - Fixed false-positives for ``bsl::optional`` containing allocator-aware 
type.
 
   - Added the `IgnoreValueCalls` option to suppress diagnostics for
-    ``optional::value()``. 
-    
+    ``optional::value()``.
+
   - Added the `IgnoreSmartPointerDereference` option to ignore optionals
     reached via smart-pointer-like dereference, while still diagnosing UB-prone
     dereferences via ``operator*`` and ``operator->``.
@@ -476,7 +476,7 @@ Changes in existing checks
 
 - Improved :doc:`bugprone-use-after-move
   <clang-tidy/checks/bugprone/use-after-move>` check:
-  
+
   - Added `InvalidationFunctions` option to support custom invalidation 
functions.
 
   - Added `ReinitializationFunctions` option to support custom reinitialization
@@ -537,12 +537,12 @@ Changes in existing checks
 
 - Improved :doc:`misc-const-correctness
   <clang-tidy/checks/misc/const-correctness>` check:
-  
+
   - Fixed false positives when pointers is transferred to non-const references.
 
-  - Fixed false positives of function pointer, on return of non-const pointer, 
+  - Fixed false positives of function pointer, on return of non-const pointer,
     on pointer-to-member operator.
-  
+
   - Fixed false positives when the address of a variable is taken to be passed
     to a function.
 
@@ -556,14 +556,14 @@ Changes in existing checks
 
 - Improved :doc:`misc-use-internal-linkage
   <clang-tidy/checks/misc/use-internal-linkage>` check:
-  
+
   - Added suggestion of internal linkage for user-defined types (structs,
     classes, unions, and enums).
-  
-  - Added fine-grained options `AnalyzeFunctions`, `AnalyzeVariables`, 
+
+  - Added fine-grained options `AnalyzeFunctions`, `AnalyzeVariables`,
     `AnalyzeTypes` to control whether the check should diagnose functions,
     variables, and/or user-defined types.
-  
+
   - Enabled the check for C.
 
 - Improved :doc:`modernize-avoid-c-arrays
@@ -658,25 +658,25 @@ Changes in existing checks
 
 - Improved :doc:`readability-identifier-naming
   <clang-tidy/checks/readability/identifier-naming>` check:
-  
+
   - Now ignores declarations and macros in system headers.
-  
+
   - The documentation is improved to differentiate the general options from the
     specific ones.
-  
+
   - Options for fine-grained control over ``constexpr`` variables were added.
-  
+
   - Added default options which simplify configs by removing the need to 
specify
     each identifier kind separately.
 
 - Improved :doc:`readability-implicit-bool-conversion
   <clang-tidy/checks/readability/implicit-bool-conversion>` check:
-  
+
   - Now correctly adds parentheses when inner expressions are implicitly
     converted multiple times.
-  
-  - Enabled the check for C99 and later standards. 
-  
+
+  - Enabled the check for C99 and later standards.
+
   - Now allows implicit conversions from ``bool`` to integer when used as
     operands of logical operators (``&&``, ``||``) in C.
 

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to