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

Finds function calls where the arguments passed are provided out of order, based on the difference between the argument name and the parameter names of the function. More...

#include <SuspiciousCallArgumentCheck.h>

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

Public Member Functions

 SuspiciousCallArgumentCheck (StringRef Name, ClangTidyContext *Context)
void storeOptions (ClangTidyOptions::OptionMap &Opts) override
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Static Public Attributes

static constexpr std::size_t SmallVectorSize = 8
static constexpr std::size_t HeuristicCount

Detailed Description

Finds function calls where the arguments passed are provided out of order, based on the difference between the argument name and the parameter names of the function.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/suspicious-call-argument.html

Definition at line 24 of file SuspiciousCallArgumentCheck.h.

Constructor & Destructor Documentation

◆ SuspiciousCallArgumentCheck()

Member Function Documentation

◆ check()

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

◆ registerMatchers()

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

Definition at line 603 of file SuspiciousCallArgumentCheck.cpp.

◆ storeOptions()

void clang::tidy::readability::SuspiciousCallArgumentCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

Member Data Documentation

◆ HeuristicCount

std::size_t clang::tidy::readability::SuspiciousCallArgumentCheck::HeuristicCount
staticconstexpr
Initial value:
=
static_cast<std::size_t>(Heuristic::Dice) + 1

Definition at line 52 of file SuspiciousCallArgumentCheck.h.

Referenced by storeOptions(), and SuspiciousCallArgumentCheck().

◆ SmallVectorSize

std::size_t clang::tidy::readability::SuspiciousCallArgumentCheck::SmallVectorSize = 8
staticconstexpr

Definition at line 51 of file SuspiciousCallArgumentCheck.h.


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