Debian Codegraph @

src/checks/level0/qfileinfo-exists.h

raw
1 /*
2 SPDX-FileCopyrightText: 2016 Sergio Martins <[email protected]>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7 #ifndef CLAZY_QFILEINFO_EXISTS_H
8 #define CLAZY_QFILEINFO_EXISTS_H
9
10 #include "checkbase.h"
11
12 /**
13 * Finds places using QFileInfo("foo").exists() instead of the faster version QFileInfo::exists("foo")
14 *
15 * See README-qfileinfo-exists for more information
16 */
17 class QFileInfoExists : public CheckBase
18 {
19 public:
20 using CheckBase::CheckBase;
21 void VisitStmt(clang::Stmt *stmt) override;
22 };
23
24 #endif