Debian Codegraph @

src/checks/level0/writing-to-temporary.h

raw
1 /*
2 SPDX-FileCopyrightText: 2015 Klarälvdalens Datakonsult AB a KDAB Group company [email protected]
3 SPDX-FileContributor: Sérgio Martins <[email protected]>
4
5 SPDX-FileCopyrightText: 2015 Sergio Martins <[email protected]>
6
7 SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9
10 #ifndef CLANG_WRITING_TO_TEMPORARY_H
11 #define CLANG_WRITING_TO_TEMPORARY_H
12
13 #include "checkbase.h"
14
15 #include <string>
16
17 /**
18 * Finds places where writing to temporaries, which is a nop.
19 *
20 * See README-writing-to-temporary for more information
21 */
22 class WritingToTemporary : public CheckBase
23 {
24 public:
25 explicit WritingToTemporary(const std::string &name, Options options);
26 void VisitStmt(clang::Stmt *stmt) override;
27 };
28
29 #endif