Debian Codegraph @

src/checks/level2/copyable-polymorphic.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 CLANG_COPYABLE_POLYMORPHIC_H
8 #define CLANG_COPYABLE_POLYMORPHIC_H
9
10 #include "checkbase.h"
11
12 /**
13 * Finds polymorphic classes without Q_DISABLE_COPY
14 *
15 * See README-copyable-polymorphic for more information
16 */
17 class CopyablePolymorphic : public CheckBase
18 {
19 public:
20 using CheckBase::CheckBase;
21 void VisitDecl(clang::Decl *) override;
22 std::vector<clang::FixItHint> fixits(clang::CXXRecordDecl *record);
23 };
24
25 #endif