Debian Codegraph @

src/checks/manuallevel/isempty-vs-count.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 CLAZY_IS_EMPTY_VS_COUNT_H
8 #define CLAZY_IS_EMPTY_VS_COUNT_H
9
10 #include "checkbase.h"
11
12 #include <string>
13
14 /**
15 * Finds places where you're using Container::count() instead of Container::isEmpty()
16 *
17 * See README-isempty-vs-count
18 */
19 class IsEmptyVSCount : public CheckBase
20 {
21 public:
22 using CheckBase::CheckBase;
23 void VisitStmt(clang::Stmt *stmt) override;
24 };
25
26 #endif