gecko-dev/build/clang-plugin/DiagnosticsMatcher.h
Emilio Cobos Álvarez f8bf50c79e Bug 1434326: Cleanup DiagnosticsMatcher constructor. r=mystor
Removing a bit of the ugly :)

MozReview-Commit-ID: ATf2b2oh1F1

--HG--
extra : rebase_source : da6e36533c2b2ec8820c728953b0c0544c5a085e
2018-01-30 17:40:00 +01:00

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