clang-tools 22.0.0git
clang::tidy::readability::MisplacedArrayIndexCheck Class Reference

Warn about unusual array index syntax (index[array] instead of array[index]). More...

#include <MisplacedArrayIndexCheck.h>

Inheritance diagram for clang::tidy::readability::MisplacedArrayIndexCheck:
[legend]

Public Member Functions

 MisplacedArrayIndexCheck (StringRef Name, ClangTidyContext *Context)
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

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.

Constructor & Destructor Documentation

◆ MisplacedArrayIndexCheck()

clang::tidy::readability::MisplacedArrayIndexCheck::MisplacedArrayIndexCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file MisplacedArrayIndexCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::readability::MisplacedArrayIndexCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 27 of file MisplacedArrayIndexCheck.cpp.

◆ registerMatchers()

void clang::tidy::readability::MisplacedArrayIndexCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 19 of file MisplacedArrayIndexCheck.cpp.


The documentation for this class was generated from the following files: