[clang-tools-extra] [clang-tidy] bugprone-lambda-function-name ignore macro in captures (PR #89076)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 17 16:24:50 PDT 2024


================
@@ -151,6 +151,10 @@ Changes in existing checks
   <clang-tidy/checks/bugprone/inc-dec-in-conditions>` check to ignore code
   within unevaluated contexts, such as ``decltype``.
 
+- Improved :doc:`bugprone-lambda-function-name
+  <clang-tidy/checks/bugprone/lambda-function-name>` check by ignoring
+  ``__func__`` macro in lambda captures and nested function declaration.
----------------
5chmidti wrote:

I think the default parameter part should be included as well (+nits):
`check by ignoring the ``__func__`` macro in lambda captures, initializers of default parameters and nested function declarations.`

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


More information about the cfe-commits mailing list