clang-tools 23.0.0git
clang::tidy::modernize::UseStructuredBindingCheck Class Reference

Finds places where structured bindings could be used to decompose pairs and suggests replacing them. More...

#include <UseStructuredBindingCheck.h>

Inheritance diagram for clang::tidy::modernize::UseStructuredBindingCheck:
[legend]

Public Member Functions

 UseStructuredBindingCheck (StringRef Name, ClangTidyContext *Context)
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override

Detailed Description

Finds places where structured bindings could be used to decompose pairs and suggests replacing them.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-structured-binding.html

Definition at line 21 of file UseStructuredBindingCheck.h.

Constructor & Destructor Documentation

◆ UseStructuredBindingCheck()

clang::tidy::modernize::UseStructuredBindingCheck::UseStructuredBindingCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file UseStructuredBindingCheck.h.

Member Function Documentation

◆ check()

◆ isLanguageVersionSupported()

bool clang::tidy::modernize::UseStructuredBindingCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 27 of file UseStructuredBindingCheck.h.

◆ registerMatchers()


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