[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
Thu Sep 5 01:46:03 PDT 2024


================
@@ -19,6 +19,9 @@ The check implements the following rules from the CERT C Coding Standard:
 Unsafe functions
 ----------------
 
+The following functions are reported if `ReportDefaultFunctions
+<unsafe-functions.html#cmdoption-arg-ReportDefaultFunctions>`_ is enabled.
+
----------------
whisperity wrote:

Referring to the `.html` directly is definitely not good because rst can be lowered to different markup syntaxes.

You need to create (or check if `opt::` automatically does?) a referable entity, and then `:ref:` can be used to make the link clickable. So you will use the ID or "label" you allocated in the document instead of relying on the automatically generated, HTML-specific anchor.

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


More information about the cfe-commits mailing list