clang-tools 22.0.0git
|
Finds potentially swapped arguments by looking at implicit conversions. More...
#include <SwappedArgumentsCheck.h>
Public Member Functions | |
SwappedArgumentsCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds potentially swapped arguments by looking at implicit conversions.
Definition at line 17 of file SwappedArgumentsCheck.h.
|
inline |
Definition at line 19 of file SwappedArgumentsCheck.h.
|
override |
Definition at line 83 of file SwappedArgumentsCheck.cpp.
References clang::tidy::bugprone::areArgumentsPotentiallySwapped(), clang::tidy::bugprone::ignoreNoOpCasts(), and clang::tidy::bugprone::isImplicitCastCandidate().
|
override |
Definition at line 19 of file SwappedArgumentsCheck.cpp.