Bug 1857669 - Install libavcodec/libavutil for Selenium tests r=releng-reviewers...
[gecko.git] / build / clang-plugin / DiagnosticsMatcher.h
blob2738541f62c67fcbd557ce7f41a95c890d12dd2d
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"
12 #endif
14 class DiagnosticsMatcher {
15 public:
16 DiagnosticsMatcher(CompilerInstance &CI);
18 ASTConsumerPtr makeASTConsumer() { return AstMatcher.newASTConsumer(); }
20 private:
21 #define CHECK(cls, name) cls cls##_{name};
22 #include "Checks.inc"
23 #include "external/ExternalChecks.inc"
24 #ifdef MOZ_CLANG_PLUGIN_ALPHA
25 #include "alpha/AlphaChecks.inc"
26 #endif
27 #undef CHECK
28 MatchFinder AstMatcher;
31 #endif