[clang-tools-extra] [clang-tidy][NFC][doc] improve "options" sections of `bugprone-` and `modernize-` checks (PR #133525)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 30 04:31:25 PDT 2025


================
@@ -163,7 +163,11 @@ Options
     Semicolon-separated list of containers without their template parameters
     and some ``emplace``-like method of the container. Example:
     ``vector::emplace_back``. Those methods will be checked for improper use and
-    the check will report when a temporary is unnecessarily created.
+    the check will report when a temporary is unnecessarily created. Default
----------------
vbvictor wrote:

Yes, here i thought full list of methods will be big and not very informative.
https://github.com/llvm/llvm-project/blob/main/clang-tools-extra%2Fclang-tidy%2Fmodernize%2FUseEmplaceCheck.cpp#L118-L131

If it is okay, i can copy-paste that list in docs.

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


More information about the cfe-commits mailing list