build/clang-plugin/ScopeChecker.h
author Bogdan Szekely <bszekely@mozilla.com>
Mon, 04 Jul 2022 12:18:00 +0300
changeset 622871 f7c192231f501313a03d2a4c0b687de699abb306
parent 387474 88c9b8587db69f36601f45e6584ac2d1c5e459b5
permissions -rw-r--r--
Merge autoland to mozilla-central. a=merge

/* 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 ScopeChecker_h__
#define ScopeChecker_h__

#include "plugin.h"

class ScopeChecker : public BaseCheck {
public:
  ScopeChecker(StringRef CheckName, ContextType *Context = nullptr)
      : BaseCheck(CheckName, Context) {}
  void registerMatchers(MatchFinder *AstMatcher) override;
  void check(const MatchFinder::MatchResult &Result) override;
};

#endif