File indexing completed on 2024-04-28 05:38:34
0001 /* 0002 SPDX-FileCopyrightText: 2023 Ahmad Samir <a.samirh78@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef CLAZY_SANITIZE_INLINE_KEYWORD_H 0008 #define CLAZY_SANITIZE_INLINE_KEYWORD_H 0009 0010 #include "checkbase.h" 0011 0012 /** 0013 * Emits a warning if the "inline" keyword is set on the definition 0014 * but not the declaration of a member method in an exported class. 0015 * 0016 * This check sets Option_CanIgnoreIncludes. 0017 * 0018 * See docs/checks/README-sanitize-inline-keyword.md for more info. 0019 */ 0020 class SanitizeInlineKeyword : public CheckBase 0021 { 0022 public: 0023 explicit SanitizeInlineKeyword(const std::string &name, ClazyContext *context); 0024 0025 void VisitDecl(clang::Decl *) override; 0026 }; 0027 0028 #endif