[clang-tools-extra] [clang-tidy] Add user-defined functions to `bugprone-unsafe-functions` check (PR #106350)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 29 09:20:50 PDT 2024
================
@@ -86,6 +123,22 @@ Options
this option enables.
Default is `true`.
+.. option:: ReportDefaultFunctions
+
+ When `true`, the check reports the default set of functions.
+ Default is `true`.
+
+.. option:: CustomNormalFunctions
+
+ A comma-separated list of regular expressions, their replacements, and an
+ optional reason. For more information, see `Custom functions
+ <unsafe-functions.html#custom-functions>`_.
+
+.. option:: CustomAnnexKFunctions
+
+ A comma-separated list of regular expressions, their replacements, and an
+ optional reason. For more information, see `Custom functions
+ <unsafe-functions.html#custom-functions>`_.
----------------
5chmidti wrote:
What do you think about:
> A semicolon-separated list of specifications, each containing a regular expression, a replacement, and an optional reason, separated by a comma.
? I think there is still room for improvement, but I'm worried about the not mentioned semicolon/structure (even though you link to the documentation).
https://github.com/llvm/llvm-project/pull/106350
More information about the cfe-commits
mailing list