clang-tools 22.0.0git
clang::tidy::readability::RedundantFunctionPtrDereferenceCheck Class Reference

Eliminate redundant dereferences of a function pointer. More...

#include <RedundantFunctionPtrDereferenceCheck.h>

Inheritance diagram for clang::tidy::readability::RedundantFunctionPtrDereferenceCheck:
[legend]

Public Member Functions

 RedundantFunctionPtrDereferenceCheck (StringRef Name, ClangTidyContext *Context)
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

Eliminate redundant dereferences of a function pointer.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-function-ptr-dereference.html

Definition at line 20 of file RedundantFunctionPtrDereferenceCheck.h.

Constructor & Destructor Documentation

◆ RedundantFunctionPtrDereferenceCheck()

clang::tidy::readability::RedundantFunctionPtrDereferenceCheck::RedundantFunctionPtrDereferenceCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 22 of file RedundantFunctionPtrDereferenceCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::readability::RedundantFunctionPtrDereferenceCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 26 of file RedundantFunctionPtrDereferenceCheck.cpp.

◆ registerMatchers()

void clang::tidy::readability::RedundantFunctionPtrDereferenceCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 16 of file RedundantFunctionPtrDereferenceCheck.cpp.


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