| 1 |
/* |
| 2 |
SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB a KDAB Group company [email protected] |
| 3 |
SPDX-FileContributor: Shivam Kunwar <[email protected]> |
| 4 |
|
| 5 |
SPDX-License-Identifier: LGPL-2.0-or-later |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef CLAZY_UNUSED_RESULT_CHECK_H |
| 9 |
#define CLAZY_UNUSED_RESULT_CHECK_H |
| 10 |
|
| 11 |
#include "checkbase.h" |
| 12 |
|
| 13 |
class UnusedResultCheck : public CheckBase |
| 14 |
{ |
| 15 |
public: |
| 16 |
using CheckBase::CheckBase; |
| 17 |
~UnusedResultCheck() override; |
| 18 |
void registerASTMatchers(clang::ast_matchers::MatchFinder &) override; |
| 19 |
|
| 20 |
private: |
| 21 |
std::unique_ptr<ClazyAstMatcherCallback> m_astMatcherCallBack; |
| 22 |
}; |
| 23 |
|
| 24 |
#endif |