1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef OverrideBaseCallUsageChecker_h__
6 #define OverrideBaseCallUsageChecker_h__
11 * This is a companion checker for OverrideBaseCallChecker that rejects
12 * the usage of MOZ_REQUIRED_BASE_METHOD on non-virtual base methods.
14 class OverrideBaseCallUsageChecker
: public BaseCheck
{
16 OverrideBaseCallUsageChecker(StringRef CheckName
= "override-base-call-usage",
17 ContextType
*Context
= nullptr)
18 : BaseCheck(CheckName
, Context
) {}
19 void registerMatchers(MatchFinder
*AstMatcher
) override
;
20 void check(const MatchFinder::MatchResult
&Result
) override
;