clang-tools 22.0.0git
clang::tidy::google::runtime::OverloadedUnaryAndCheck Class Reference

Finds overloads of unary operator &. More...

#include <OverloadedUnaryAndCheck.h>

Inheritance diagram for clang::tidy::google::runtime::OverloadedUnaryAndCheck:
[legend]

Public Member Functions

 OverloadedUnaryAndCheck (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

Finds overloads of unary operator &.

https://google.github.io/styleguide/cppguide.html#Operator_Overloading

Corresponding cpplint.py check name: 'runtime/operator'.

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

Definition at line 24 of file OverloadedUnaryAndCheck.h.

Constructor & Destructor Documentation

◆ OverloadedUnaryAndCheck()

clang::tidy::google::runtime::OverloadedUnaryAndCheck::OverloadedUnaryAndCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 26 of file OverloadedUnaryAndCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::google::runtime::OverloadedUnaryAndCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 32 of file OverloadedUnaryAndCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::google::runtime::OverloadedUnaryAndCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 28 of file OverloadedUnaryAndCheck.h.

◆ registerMatchers()

void clang::tidy::google::runtime::OverloadedUnaryAndCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 17 of file OverloadedUnaryAndCheck.cpp.


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