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

Check for mising parantheses in mathematical expressions that involve operators of different priorities. More...

#include <MathMissingParenthesesCheck.h>

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

Public Member Functions

 MathMissingParenthesesCheck (StringRef Name, ClangTidyContext *Context)
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override
std::optional< TraversalKind > getCheckTraversalKind () const override

Detailed Description

Check for mising parantheses in mathematical expressions that involve operators of different priorities.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/math-missing-parentheses.html

Definition at line 21 of file MathMissingParenthesesCheck.h.

Constructor & Destructor Documentation

◆ MathMissingParenthesesCheck()

clang::tidy::readability::MathMissingParenthesesCheck::MathMissingParenthesesCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file MathMissingParenthesesCheck.h.

Member Function Documentation

◆ check()

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

◆ getCheckTraversalKind()

std::optional< TraversalKind > clang::tidy::readability::MathMissingParenthesesCheck::getCheckTraversalKind ( ) const
inlineoverride

Definition at line 27 of file MathMissingParenthesesCheck.h.

◆ registerMatchers()

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

Definition at line 18 of file MathMissingParenthesesCheck.cpp.


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