Debian Codegraph @

src/checks/manuallevel/jnisignatures.h

raw
1 /*
2 SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB a KDAB Group company [email protected]
3 SPDX-FileContributor: Nicolas Fella <[email protected]>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8 #ifndef JNISIGNATURES_H
9 #define JNISIGNATURES_H
10
11 #include "checkbase.h"
12
13 #include <regex>
14 #include <string>
15
16 class JniSignatures : public CheckBase
17 {
18 public:
19 using CheckBase::CheckBase;
20 void VisitStmt(clang::Stmt *) override;
21
22 private:
23 template<typename T>
24 void checkArgAt(T *call, unsigned int index, const std::regex &expr, const std::string &errorMessage);
25 void checkConstructorCall(clang::Stmt *stm);
26 void checkFunctionCall(clang::Stmt *stm);
27 };
28
29 #endif