File indexing completed on 2024-04-28 05:38:29
0001 /* 0002 SPDX-FileCopyrightText: 2017 Klarälvdalens Datakonsult AB a KDAB Group company info@kdab.com 0003 SPDX-FileContributor: Sérgio Martins <sergio.martins@kdab.com> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef CLAZY_QLATIN1STRING_ENCODING_H 0009 #define CLAZY_QLATIN1STRING_ENCODING_H 0010 0011 #include "checkbase.h" 0012 0013 #include <string> 0014 0015 class ClazyContext; 0016 namespace clang 0017 { 0018 class Stmt; 0019 } // namespace clang 0020 0021 /** 0022 * See README-qlatin1string-non-ascii.md for more info. 0023 */ 0024 class QLatin1StringNonAscii : public CheckBase 0025 { 0026 public: 0027 explicit QLatin1StringNonAscii(const std::string &name, ClazyContext *context); 0028 void VisitStmt(clang::Stmt *stmt) override; 0029 0030 private: 0031 }; 0032 0033 #endif