clang-tools 23.0.0git
clang::tidy::bugprone::AssignmentInSelectionStatementCheck Class Reference

Finds assignments within selection statements. More...

#include <AssignmentInSelectionStatementCheck.h>

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

Public Member Functions

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

Detailed Description

Finds assignments within selection statements.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/assignment-in-selection-statement.html

Definition at line 20 of file AssignmentInSelectionStatementCheck.h.

Constructor & Destructor Documentation

◆ AssignmentInSelectionStatementCheck()

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

Definition at line 22 of file AssignmentInSelectionStatementCheck.h.

Member Function Documentation

◆ check()

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

Definition at line 112 of file AssignmentInSelectionStatementCheck.cpp.

◆ registerMatchers()

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

Definition at line 78 of file AssignmentInSelectionStatementCheck.cpp.


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