|
clang-tools 22.0.0git
|
Detects if/else statements where one branch uses braces and the other does not. More...
#include <InconsistentIfElseBracesCheck.h>
Public Member Functions | |
| InconsistentIfElseBracesCheck (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 |
Detects if/else statements where one branch uses braces and the other does not.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/inconsistent-ifelse-braces.html
Definition at line 23 of file InconsistentIfElseBracesCheck.h.
|
inline |
Definition at line 25 of file InconsistentIfElseBracesCheck.h.
|
override |
Definition at line 46 of file InconsistentIfElseBracesCheck.cpp.
References clang::tidy::readability::shouldHaveBraces().
|
inlineoverride |
Definition at line 29 of file InconsistentIfElseBracesCheck.h.
|
override |
Definition at line 37 of file InconsistentIfElseBracesCheck.cpp.