/* SPDX-FileCopyrightText: 2016 Sergio Martins SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef CLAZY_INCORRECT_EMIT_H #define CLAZY_INCORRECT_EMIT_H #include "checkbase.h" #include #include #include namespace clang { class CXXMemberCallExpr; } /** * See README-incorrect-emit.md for more info. */ class IncorrectEmit : public CheckBase { public: explicit IncorrectEmit(const std::string &name, Options options); void VisitStmt(clang::Stmt *stmt) override; private: void checkCallSignalInsideCTOR(clang::CXXMemberCallExpr *); void VisitMacroExpands(const clang::Token &MacroNameTok, const clang::SourceRange &range, const clang::MacroInfo *minfo = nullptr) override; bool hasEmitKeyboard(clang::CXXMemberCallExpr *) const; std::vector m_emitLocations; }; #endif