clang-tools 22.0.0git
clang::tidy::bugprone::SwappedArgumentsCheck Class Reference

Finds potentially swapped arguments by looking at implicit conversions. More...

#include <SwappedArgumentsCheck.h>

Inheritance diagram for clang::tidy::bugprone::SwappedArgumentsCheck:
[legend]

Public Member Functions

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

Detailed Description

Finds potentially swapped arguments by looking at implicit conversions.

Definition at line 17 of file SwappedArgumentsCheck.h.

Constructor & Destructor Documentation

◆ SwappedArgumentsCheck()

clang::tidy::bugprone::SwappedArgumentsCheck::SwappedArgumentsCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 19 of file SwappedArgumentsCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::bugprone::SwappedArgumentsCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ registerMatchers()

void clang::tidy::bugprone::SwappedArgumentsCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 19 of file SwappedArgumentsCheck.cpp.


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