1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef DiagnosticsMatcher_h__
6 #define DiagnosticsMatcher_h__
8 #include "ChecksIncludes.inc"
9 #include "external/ExternalIncludes.inc"
10 #ifdef MOZ_CLANG_PLUGIN_ALPHA
11 #include "alpha/AlphaIncludes.inc"
14 class DiagnosticsMatcher
{
16 DiagnosticsMatcher(CompilerInstance
&CI
);
18 ASTConsumerPtr
makeASTConsumer() { return AstMatcher
.newASTConsumer(); }
21 #define CHECK(cls, name) cls cls##_{name};
23 #include "external/ExternalChecks.inc"
24 #ifdef MOZ_CLANG_PLUGIN_ALPHA
25 #include "alpha/AlphaChecks.inc"
28 MatchFinder AstMatcher
;