DiagnosticsMatcher.h (802B)
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 #ifndef DiagnosticsMatcher_h__ 6 #define DiagnosticsMatcher_h__ 7 8 #include "ChecksIncludes.inc" 9 #include "external/ExternalIncludes.inc" 10 #ifdef MOZ_CLANG_PLUGIN_ALPHA 11 #include "alpha/AlphaIncludes.inc" 12 #endif 13 14 class DiagnosticsMatcher { 15 public: 16 DiagnosticsMatcher(CompilerInstance &CI); 17 18 ASTConsumerPtr makeASTConsumer() { return AstMatcher.newASTConsumer(); } 19 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; 29 }; 30 31 #endif