clang-tools 22.0.0git
|
This check diagnoses all DeclStmt's declaring more than one variable and tries to refactor the code to one statement per declaration. More...
#include <IsolateDeclarationCheck.h>
Public Member Functions | |
IsolateDeclarationCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
This check diagnoses all DeclStmt's declaring more than one variable and tries to refactor the code to one statement per declaration.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/isolate-declaration.html
Definition at line 21 of file IsolateDeclarationCheck.h.
|
inline |
Definition at line 23 of file IsolateDeclarationCheck.h.
|
override |
Definition at line 246 of file IsolateDeclarationCheck.cpp.
References clang::tidy::readability::collectSourceRanges(), clang::tidy::readability::createIsolatedDecls(), and clang::tidy::readability::declRanges().
|
override |
Definition at line 26 of file IsolateDeclarationCheck.cpp.