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 #include "DiagnosticsMatcher.h"
7 DiagnosticsMatcher::DiagnosticsMatcher(CompilerInstance
&CI
) {
8 #define CHECK(cls, name) \
9 cls##_.registerMatchers(&AstMatcher); \
10 cls##_.registerPPCallbacks(CI);
12 #include "external/ExternalChecks.inc"
13 #ifdef MOZ_CLANG_PLUGIN_ALPHA
14 #include "alpha/AlphaChecks.inc"