[clang-tools-extra] [clang-tidy] Add support for lambda-expression in `use-trailing-return-type` check (PR #135383)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Tue May 20 09:50:37 PDT 2025
================
@@ -56,6 +60,13 @@ class UseTrailingReturnTypeCheck : public ClangTidyCheck {
SourceRange ReturnTypeCVRange, const FunctionDecl &F,
const FriendDecl *Fr, const ASTContext &Ctx,
const SourceManager &SM, const LangOptions &LangOpts);
+
+ void diagOnLambda(const LambdaExpr *Lambda,
+ const ast_matchers::MatchFinder::MatchResult &Result);
+ SourceLocation findLambdaTrailingReturnInsertLoc(const CXXMethodDecl *Method,
+ const SourceManager &SM,
+ const LangOptions &LangOpts,
+ const ASTContext &Ctx);
----------------
vbvictor wrote:
Created a separate PR for this change https://github.com/llvm/llvm-project/pull/140759
https://github.com/llvm/llvm-project/pull/135383
More information about the cfe-commits
mailing list