File indexing completed on 2024-04-28 05:38:28
0001 /* 0002 SPDX-FileCopyrightText: 2017 Sergio Martins <sergio.martins@kdab.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef CLAZY_CONNECT_3ARG_LAMBDA_H 0008 #define CLAZY_CONNECT_3ARG_LAMBDA_H 0009 0010 #include "checkbase.h" 0011 0012 #include <string> 0013 0014 class ClazyContext; 0015 namespace clang 0016 { 0017 class FunctionDecl; 0018 class Stmt; 0019 } // namespace clang 0020 0021 /** 0022 * See README-connect-3arg-lambda.md for more info. 0023 */ 0024 class Connect3ArgLambda : public CheckBase 0025 { 0026 public: 0027 explicit Connect3ArgLambda(const std::string &name, ClazyContext *context); 0028 void VisitStmt(clang::Stmt *stmt) override; 0029 0030 private: 0031 void processQTimer(clang::FunctionDecl *, clang::Stmt *); 0032 void processQMenu(clang::FunctionDecl *, clang::Stmt *); 0033 void processWidget(clang::FunctionDecl *, clang::Stmt *); 0034 }; 0035 0036 #endif