build/clang-plugin/DiagnosticsMatcher.h
author Tom Schuster <evilpies@gmail.com>
Fri, 28 Feb 2020 12:13:49 +0000
changeset 516105 fc9d28ae4655254a6ef8a57ac6577545b2a42ca7
parent 514334 026489b7bda6781b49a5b6bf7f4604894e3458dd
permissions -rw-r--r--
Bug 1549641 - Add devtools test for overwritten name and message in error object r=bzbarsky I had problems running this test locally and it turns out cssErrorReportingEnabled is not set/unset correctly. Thanks to Boris for pointing that out. Differential Revision: https://phabricator.services.mozilla.com/D64415

/* 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