clang-tools 22.0.0git
clang::tidy::performance::NoIntToPtrCheck Class Reference

Diagnoses every integer to pointer cast. More...

#include <NoIntToPtrCheck.h>

Inheritance diagram for clang::tidy::performance::NoIntToPtrCheck:
[legend]

Public Member Functions

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

Detailed Description

Diagnoses every integer to pointer cast.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/performance/no-int-to-ptr.html

Definition at line 20 of file NoIntToPtrCheck.h.

Constructor & Destructor Documentation

◆ NoIntToPtrCheck()

clang::tidy::performance::NoIntToPtrCheck::NoIntToPtrCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 22 of file NoIntToPtrCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::performance::NoIntToPtrCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 23 of file NoIntToPtrCheck.cpp.

◆ registerMatchers()

void clang::tidy::performance::NoIntToPtrCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 16 of file NoIntToPtrCheck.cpp.


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