Debian Codegraph @

src/checks/level0/qstring-insensitive-allocation.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_QSTRING_INSENSITIVE_ALLOCATION_H
8 #define CLAZY_QSTRING_INSENSITIVE_ALLOCATION_H
9
10 #include "checkbase.h"
11
12 /**
13 * Finds unneeded allocations in the form of str.{toLower, toUpper}().{contains, compare, startsWith, endsWith}().
14 *
15 * See README-qstring-insensitive-allocation for more information
16 */
17 class QStringInsensitiveAllocation : public CheckBase
18 {
19 public:
20 using CheckBase::CheckBase;
21 void VisitStmt(clang::Stmt *stmt) override;
22 };
23
24 #endif