[clang-tools-extra] [clang-tidy] Add user-defined functions to `bugprone-unsafe-functions` check (PR #106350)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 2 01:37:43 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>`_.
----------------
Discookie wrote:

> A semicolon-separated list of custom functions to be matched. A matched
    function contains a regular expression, the name of the replacement
    function, and an optional reason, separated by comma.

Should be good enough for these purposes.

https://github.com/llvm/llvm-project/pull/106350


More information about the cfe-commits mailing list