DiagnosticsMatcher.cpp (644B)
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/. */ 4 5 #include "DiagnosticsMatcher.h" 6 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 17 }