[PATCH] D148444: [clang-tidy] Prevent `llvmlibc-inline-function-decl` triggering on lambdas

Piotr Zegar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 15 22:55:02 PDT 2023


PiotrZSL added a comment.

Missing ReleaseNote entry.



================
Comment at: clang-tools-extra/clang-tidy/llvmlibc/InlineFunctionDeclCheck.cpp:43
+  // Consider only functions with a external and visible declaration.
+  if (auto *MemberDecl = dyn_cast<CXXMethodDecl>(FuncDecl))
+    if (MemberDecl->getParent()->isLambda())
----------------
auto -> const auto


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148444/new/

https://reviews.llvm.org/D148444



More information about the cfe-commits mailing list