clang-tools 22.0.0git
clang::tidy::fuchsia::OverloadedOperatorCheck Class Reference

Overloading operators is disallowed by the Fuchsia coding standard. More...

#include <OverloadedOperatorCheck.h>

Inheritance diagram for clang::tidy::fuchsia::OverloadedOperatorCheck:
[legend]

Public Member Functions

 OverloadedOperatorCheck (StringRef Name, ClangTidyContext *Context)
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

Overloading operators is disallowed by the Fuchsia coding standard.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/fuchsia/overloaded-operator.html

Definition at line 20 of file OverloadedOperatorCheck.h.

Constructor & Destructor Documentation

◆ OverloadedOperatorCheck()

clang::tidy::fuchsia::OverloadedOperatorCheck::OverloadedOperatorCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 22 of file OverloadedOperatorCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::fuchsia::OverloadedOperatorCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 33 of file OverloadedOperatorCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::fuchsia::OverloadedOperatorCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 24 of file OverloadedOperatorCheck.h.

◆ registerMatchers()

void clang::tidy::fuchsia::OverloadedOperatorCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 28 of file OverloadedOperatorCheck.cpp.


The documentation for this class was generated from the following files: