Bug 1434326: Cleanup DiagnosticsMatcher constructor. r=mystor

Removing a bit of the ugly :)

MozReview-Commit-ID: ATf2b2oh1F1

--HG--
extra : rebase_source : da6e36533c2b2ec8820c728953b0c0544c5a085e
This commit is contained in:
Emilio Cobos Álvarez 2018-01-30 17:40:00 +01:00
Родитель 00bbcb11bb
Коммит f8bf50c79e
2 изменённых файлов: 2 добавлений и 7 удалений

Просмотреть файл

@ -4,12 +4,7 @@
#include "DiagnosticsMatcher.h"
DiagnosticsMatcher::DiagnosticsMatcher(CompilerInstance &CI)
:
#define CHECK(cls, name) cls##_(name),
#include "Checks.inc"
#undef CHECK
AstMatcher() {
DiagnosticsMatcher::DiagnosticsMatcher(CompilerInstance &CI) {
#define CHECK(cls, name) \
cls##_.registerMatchers(&AstMatcher); \
cls##_.registerPPCallbacks(CI);

Просмотреть файл

@ -14,7 +14,7 @@ public:
ASTConsumerPtr makeASTConsumer() { return AstMatcher.newASTConsumer(); }
private:
#define CHECK(cls, name) cls cls##_;
#define CHECK(cls, name) cls cls##_ { name };
#include "Checks.inc"
#undef CHECK
MatchFinder AstMatcher;