[clang-tools-extra] [clang-tidy] Add a fully custom message to `bugprone-unsafe-functions` (PR #162443)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 3 03:17:53 PST 2025
================
@@ -69,6 +69,11 @@ Potentially Breaking Changes
- `CharTypdefsToIgnore` to `CharTypedefsToIgnore` in
:doc:`bugprone-signed-char-misuse
<clang-tidy/checks/bugprone/signed-char-misuse>`
+
+- Modified the custom message format of :doc:`bugprone-unsafe-functions
+ <clang-tidy/checks/bugprone/unsafe-functions>` by hiding the default suffix
+ when the reason starts with the character `>` in the `CustomFunctions` option.
+ The warning locations are not changed, but the message is different.
----------------
NagyDonat wrote:
Perhaps highlight that this only changes the behavior in the unlikely case when the configured reason already started with `>`.
https://github.com/llvm/llvm-project/pull/162443
More information about the cfe-commits
mailing list