Debian Codegraph @

src/checks/level0/use-static-qregularexpression.h

raw
1 /*
2 SPDX-FileCopyrightText: 2021 Klarälvdalens Datakonsult AB a KDAB Group company [email protected]
3 SPDX-FileContributor: Waqar Ahmed <[email protected]>
4 SPDX-FileCopyrightText: 2021 Waqar Ahmed <[email protected]>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8
9 #ifndef CLAZY_USE_STATIC_QREGULAREXPRESSION_H
10 #define CLAZY_USE_STATIC_QREGULAREXPRESSION_H
11
12 #include "checkbase.h"
13
14 /**
15 * See README-use-static-qregularexpression.md for more info.
16 */
17 class UseStaticQRegularExpression : public CheckBase
18 {
19 public:
20 using CheckBase::CheckBase;
21 void VisitStmt(clang::Stmt *) override;
22
23 private:
24 bool isTemporaryQRegexObj(clang::Expr *qregexVar, const clang::LangOptions &lo);
25 };
26
27 #endif