clang-tools 22.0.0git
|
Detect multiple statement macros that are used in unbraced conditionals. More...
#include <MultipleStatementMacroCheck.h>
Public Member Functions | |
MultipleStatementMacroCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Detect multiple statement macros that are used in unbraced conditionals.
Only the first statement of the macro will be inside the conditional and the other ones will be executed unconditionally.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/multiple-statement-macro.html
Definition at line 22 of file MultipleStatementMacroCheck.h.
|
inline |
Definition at line 24 of file MultipleStatementMacroCheck.h.
|
override |
Definition at line 65 of file MultipleStatementMacroCheck.cpp.
|
override |
Definition at line 56 of file MultipleStatementMacroCheck.cpp.