mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 08:40:56 +00:00
Bug 1324320 follow-up: Fix a mistake that breaks the build
This commit is contained in:
parent
21f0768c95
commit
65c49d82e4
@ -2,15 +2,15 @@
|
||||
* 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 MozCheck_h__
|
||||
#define MozCheck_h__
|
||||
#ifndef BaseCheck_h__
|
||||
#define BaseCheck_h__
|
||||
|
||||
class MozContext {};
|
||||
typedef MozContext ContextType;
|
||||
|
||||
class MozCheck : public MatchFinder::MatchCallback {
|
||||
class BaseCheck : public MatchFinder::MatchCallback {
|
||||
public:
|
||||
MozCheck(StringRef CheckName, ContextType* Context) {}
|
||||
BaseCheck(StringRef CheckName, ContextType* Context) {}
|
||||
virtual void registerMatchers(MatchFinder *Finder) {}
|
||||
virtual void registerPPCallbacks(CompilerInstance& CI) {}
|
||||
virtual void check(const MatchFinder::MatchResult &Result) {}
|
||||
@ -18,7 +18,6 @@ public:
|
||||
DiagnosticIDs::Level Level = DiagnosticIDs::Warning) {
|
||||
DiagnosticsEngine &Diag = Context->getDiagnostics();
|
||||
unsigned ID = Diag.getDiagnosticIDs()->getCustomDiagID(Level, Description);
|
||||
// We treat all diagnostics as errors here.
|
||||
return Diag.Report(Loc, ID);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user