2016-12-19 03:42:04 +03:00
|
|
|
/* 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 MustOverrideChecker_h__
|
|
|
|
#define MustOverrideChecker_h__
|
|
|
|
|
|
|
|
#include "plugin.h"
|
|
|
|
|
|
|
|
class MustOverrideChecker : public BaseCheck {
|
|
|
|
public:
|
2017-10-20 20:11:50 +03:00
|
|
|
MustOverrideChecker(StringRef CheckName, ContextType *Context = nullptr)
|
|
|
|
: BaseCheck(CheckName, Context), CI(nullptr) {}
|
|
|
|
void registerMatchers(MatchFinder *AstMatcher) override;
|
2019-10-31 15:16:35 +03:00
|
|
|
void registerPPCallbacks(CompilerInstance &CI) override;
|
2016-12-19 03:42:04 +03:00
|
|
|
void check(const MatchFinder::MatchResult &Result) override;
|
|
|
|
|
|
|
|
private:
|
2017-10-20 20:11:50 +03:00
|
|
|
const CompilerInstance *CI;
|
2016-12-19 03:42:04 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|