Debian Codegraph @

build/clang-plugin/OverrideBaseCallUsageChecker.h

raw
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/. */
4
5 #ifndef OverrideBaseCallUsageChecker_h__
6 #define OverrideBaseCallUsageChecker_h__
7
8 #include "plugin.h"
9
10 /*
11 * This is a companion checker for OverrideBaseCallChecker that rejects
12 * the usage of MOZ_REQUIRED_BASE_METHOD on non-virtual base methods.
13 */
14 class OverrideBaseCallUsageChecker : public BaseCheck {
15 public:
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;
21 };
22
23 #endif