clang-tools 22.0.0git
|
Checks the code for dangling else, and possible misleading indentations due to missing braces. More...
#include <MisleadingIndentationCheck.h>
Public Member Functions | |
MisleadingIndentationCheck (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 |
Checks the code for dangling else, and possible misleading indentations due to missing braces.
Note that this check only works as expected when the tabs or spaces are used consistently and not mixed.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/misleading-indentation.html
Definition at line 22 of file MisleadingIndentationCheck.h.
|
inline |
Definition at line 24 of file MisleadingIndentationCheck.h.
|
override |
Definition at line 130 of file MisleadingIndentationCheck.cpp.
|
inlineoverride |
Definition at line 28 of file MisleadingIndentationCheck.h.
|
override |
Definition at line 121 of file MisleadingIndentationCheck.cpp.