Debian Codegraph @

src/checks/manuallevel/sanitize-inline-keyword.h

raw
1 /*
2 SPDX-FileCopyrightText: 2023 Ahmad Samir <[email protected]>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7 #ifndef CLAZY_SANITIZE_INLINE_KEYWORD_H
8 #define CLAZY_SANITIZE_INLINE_KEYWORD_H
9
10 #include "checkbase.h"
11
12 /**
13 * Emits a warning if the "inline" keyword is set on the definition
14 * but not the declaration of a member method in an exported class.
15 *
16 * This check sets Option_CanIgnoreIncludes.
17 *
18 * See docs/checks/README-sanitize-inline-keyword.md for more info.
19 */
20 class SanitizeInlineKeyword : public CheckBase
21 {
22 public:
23 using CheckBase::CheckBase;
24
25 void VisitDecl(clang::Decl *) override;
26 };
27
28 #endif