clang-tools 22.0.0git
|
Check for mising parantheses in mathematical expressions that involve operators of different priorities. More...
#include <MathMissingParenthesesCheck.h>
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 |
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.
|
inline |
Definition at line 23 of file MathMissingParenthesesCheck.h.
|
override |
Definition at line 90 of file MathMissingParenthesesCheck.cpp.
References clang::tidy::readability::addParentheses().
|
inlineoverride |
Definition at line 27 of file MathMissingParenthesesCheck.h.
|
override |
Definition at line 18 of file MathMissingParenthesesCheck.cpp.