1a966f45bSJulie Hockett //===--- OverloadedOperatorCheck.h - clang-tidy------------------*- C++ -*-===// 2a966f45bSJulie Hockett // 32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6a966f45bSJulie Hockett // 7a966f45bSJulie Hockett //===----------------------------------------------------------------------===// 8a966f45bSJulie Hockett 9a966f45bSJulie Hockett #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_FUCHSIA_OVERLOADED_OPERATOR_H 10a966f45bSJulie Hockett #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_FUCHSIA_OVERLOADED_OPERATOR_H 11a966f45bSJulie Hockett 12478fc5c8SAlexander Kornienko #include "../ClangTidyCheck.h" 13a966f45bSJulie Hockett 14*4718da50SCarlos Galvez namespace clang::tidy::fuchsia { 15a966f45bSJulie Hockett 16a966f45bSJulie Hockett /// Overloading operators is disallowed by the Fuchsia coding standard. 17a966f45bSJulie Hockett /// 18a966f45bSJulie Hockett /// For the user-facing documentation see: 196e566bc5SRichard /// http://clang.llvm.org/extra/clang-tidy/checks/fuchsia/overloaded-operator.html 20a966f45bSJulie Hockett class OverloadedOperatorCheck : public ClangTidyCheck { 21a966f45bSJulie Hockett public: OverloadedOperatorCheck(StringRef Name,ClangTidyContext * Context)22a966f45bSJulie Hockett OverloadedOperatorCheck(StringRef Name, ClangTidyContext *Context) 23a966f45bSJulie Hockett : ClangTidyCheck(Name, Context) {} 24a966f45bSJulie Hockett void registerMatchers(ast_matchers::MatchFinder *Finder) override; 25a966f45bSJulie Hockett void check(const ast_matchers::MatchFinder::MatchResult &Result) override; 26a966f45bSJulie Hockett }; 27a966f45bSJulie Hockett 28*4718da50SCarlos Galvez } // namespace clang::tidy::fuchsia 29a966f45bSJulie Hockett 30a966f45bSJulie Hockett #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_FUCHSIA_OVERLOADED_OPERATOR_H 31