File indexing completed on 2024-05-12 17:13:11
0001 /* 0002 This file is part of the clazy static checker. 0003 0004 Copyright (C) 2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com 0005 Author: Waqar Ahmed <waqar.ahmed@kdab.com> 0006 0007 Copyright (C) 2021 Waqar Ahmed <waqar.17a@gmail.com> 0008 0009 This library is free software; you can redistribute it and/or 0010 modify it under the terms of the GNU Library General Public 0011 License as published by the Free Software Foundation; either 0012 version 2 of the License, or (at your option) any later version. 0013 0014 This library is distributed in the hope that it will be useful, 0015 but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0017 Library General Public License for more details. 0018 0019 You should have received a copy of the GNU Library General Public License 0020 along with this library; see the file COPYING.LIB. If not, write to 0021 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0022 Boston, MA 02110-1301, USA. 0023 */ 0024 0025 #ifndef CLAZY_USE_STATIC_QREGULAREXPRESSION_H 0026 #define CLAZY_USE_STATIC_QREGULAREXPRESSION_H 0027 0028 #include "checkbase.h" 0029 0030 /** 0031 * See README-use-static-qregularexpression.md for more info. 0032 */ 0033 class UseStaticQRegularExpression : public CheckBase 0034 { 0035 public: 0036 explicit UseStaticQRegularExpression(const std::string &name, ClazyContext *context); 0037 void VisitStmt(clang::Stmt *) override; 0038 private: 0039 }; 0040 0041 #endif