mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 11:15:34 +00:00
f8bf50c79e
Removing a bit of the ugly :) MozReview-Commit-ID: ATf2b2oh1F1 --HG-- extra : rebase_source : da6e36533c2b2ec8820c728953b0c0544c5a085e
24 lines
583 B
C++
24 lines
583 B
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef DiagnosticsMatcher_h__
|
|
#define DiagnosticsMatcher_h__
|
|
|
|
#include "ChecksIncludes.inc"
|
|
|
|
class DiagnosticsMatcher {
|
|
public:
|
|
DiagnosticsMatcher(CompilerInstance &CI);
|
|
|
|
ASTConsumerPtr makeASTConsumer() { return AstMatcher.newASTConsumer(); }
|
|
|
|
private:
|
|
#define CHECK(cls, name) cls cls##_ { name };
|
|
#include "Checks.inc"
|
|
#undef CHECK
|
|
MatchFinder AstMatcher;
|
|
};
|
|
|
|
#endif
|