Bug 1839316: part 5) Guard the "fetchpriority" attribute behind a pref. r=kershaw...
[gecko.git] / build / clang-plugin / DiagnosticsMatcher.cpp
blob96d2f60440b793b5d7dc5c38d25d7a4f6a0d329d
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);
11 #include "Checks.inc"
12 #include "external/ExternalChecks.inc"
13 #ifdef MOZ_CLANG_PLUGIN_ALPHA
14 #include "alpha/AlphaChecks.inc"
15 #endif
16 #undef CHECK