clang-tools 22.0.0git
|
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>
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 |
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.
clang::tidy::readability::SuspiciousCallArgumentCheck::SuspiciousCallArgumentCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 500 of file SuspiciousCallArgumentCheck.cpp.
References clang::tidy::readability::DefaultAbbreviations, clang::tidy::readability::DefaultMinimumIdentifierNameLength, clang::tidy::readability::Defaults, HeuristicCount, clang::tidy::readability::HeuristicToString, and clang::tidy::utils::options::parseStringList().
|
override |
Definition at line 613 of file SuspiciousCallArgumentCheck.cpp.
References clang::tidy::readability::isOverloadedUnaryOrBinarySymbolOperator().
|
override |
Definition at line 603 of file SuspiciousCallArgumentCheck.cpp.
|
override |
Definition at line 540 of file SuspiciousCallArgumentCheck.cpp.
References clang::tidy::readability::Defaults, HeuristicCount, clang::tidy::readability::HeuristicToString, and clang::tidy::utils::options::serializeStringList().
|
staticconstexpr |
Definition at line 52 of file SuspiciousCallArgumentCheck.h.
Referenced by storeOptions(), and SuspiciousCallArgumentCheck().
|
staticconstexpr |
Definition at line 51 of file SuspiciousCallArgumentCheck.h.