| 1 |
/* |
| 2 |
SPDX-FileCopyrightText: 2018 Sergio Martins <[email protected]> |
| 3 |
SPDX-FileCopyrightText: 2023 Ahmad Samir <[email protected]> |
| 4 |
|
| 5 |
SPDX-License-Identifier: LGPL-2.0-or-later |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef CLAZY_QT_KEYWORD_EMIT_H |
| 9 |
#define CLAZY_QT_KEYWORD_EMIT_H |
| 10 |
|
| 11 |
#include "checkbase.h" |
| 12 |
|
| 13 |
#include <clang/Basic/SourceLocation.h> |
| 14 |
|
| 15 |
/** |
| 16 |
* See README-qt-keyword-emit.md for more info. |
| 17 |
*/ |
| 18 |
|
| 19 |
namespace clang |
| 20 |
{ |
| 21 |
class MacroInfo; |
| 22 |
class Token; |
| 23 |
} // namespace clang |
| 24 |
|
| 25 |
class QtKeywordEmit : public CheckBase |
| 26 |
{ |
| 27 |
public: |
| 28 |
using CheckBase::CheckBase; |
| 29 |
|
| 30 |
protected: |
| 31 |
void VisitMacroExpands(const clang::Token &, const clang::SourceRange &, const clang::MacroInfo *) override; |
| 32 |
}; |
| 33 |
|
| 34 |
#endif // CLAZY_QT_KEYWORD_EMIT_H |