clang-tools 22.0.0git
|
Warn about unusual array index syntax (index[array] instead of array[index]). More...
#include <MisplacedArrayIndexCheck.h>
Public Member Functions | |
MisplacedArrayIndexCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Warn about unusual array index syntax (index[array] instead of array[index]).
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/misplaced-array-index.html
Definition at line 21 of file MisplacedArrayIndexCheck.h.
|
inline |
Definition at line 23 of file MisplacedArrayIndexCheck.h.
|
override |
Definition at line 27 of file MisplacedArrayIndexCheck.cpp.
|
override |
Definition at line 19 of file MisplacedArrayIndexCheck.cpp.