Debian Codegraph @

src/checks/level1/auto-unexpected-qstringbuilder.h

raw
1 /*
2 SPDX-FileCopyrightText: 2015 Sergio Martins <[email protected]>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7 #ifndef CLANG_LAZY_AUTO_UNEXPECTED_QSTRING_BUILDER_H
8 #define CLANG_LAZY_AUTO_UNEXPECTED_QSTRING_BUILDER_H
9
10 #include "checkbase.h"
11
12 /**
13 * Finds places where auto is deduced to be QStringBuilder instead of QString, which introduces crashes.
14 *
15 * See README-auto-unexpected-qstring-builder for more information
16 */
17 class AutoUnexpectedQStringBuilder : public CheckBase
18 {
19 public:
20 using CheckBase::CheckBase;
21 void VisitDecl(clang::Decl *decl) override;
22 void VisitStmt(clang::Stmt *stmt) override;
23 };
24
25 #endif