build/clang-plugin/TrivialCtorDtorChecker.h
author Sylvestre Ledru <sledru@mozilla.com>
Fri, 20 Oct 2017 19:11:50 +0200
changeset 387474 88c9b8587db69f36601f45e6584ac2d1c5e459b5
parent 327508 8222951c9369ca13c6358bc32c9d5da6c6c2289b
permissions -rw-r--r--
Bug 1410472 - clang-plugin follows the LLVM coding style for real r=mystor MozReview-Commit-ID: AXrQEjWzxvg

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

#include "plugin.h"

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

#endif