clang-tools 23.0.0git
UseStructuredBindingCheck.cpp File Reference
#include "UseStructuredBindingCheck.h"
#include "../utils/DeclRefExprUtils.h"
#include "clang/Lex/Lexer.h"

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
namespace  clang::tidy
namespace  clang::tidy::modernize

Functions

template<typename Iterator>
static bool clang::tidy::modernize::matchNVarDeclStartingWith (Iterator Iter, const Iterator &EndIter, ArrayRef< ast_matchers::internal::Matcher< VarDecl > > InnerMatchers, ast_matchers::internal::ASTMatchFinder *Finder, ast_matchers::internal::BoundNodesTreeBuilder *Builder, bool Backwards=false)
 Matches a sequence of VarDecls matching the inner matchers, starting from the Iter to EndIter and set bindings for the first DeclStmt and the last DeclStmt if matched.
static auto clang::tidy::modernize::getVarInitWithMemberMatcher (StringRef PairName, StringRef MemberName, StringRef TypeName, StringRef BindingName, const ast_matchers::internal::Matcher< VarDecl > &ExtraMatcher)
static auto clang::tidy::modernize::typeOrLValueReferenceTo (const ast_matchers::internal::Matcher< QualType > &TypeMatcher)
static std::optional< TransferType > clang::tidy::modernize::getTransferType (const ASTContext &Ctx, QualType ResultType, QualType OriginType)

Variables

static constexpr StringRef clang::tidy::modernize::PairDeclName = "PairVarD"
static constexpr StringRef clang::tidy::modernize::PairVarTypeName = "PairVarType"
static constexpr StringRef clang::tidy::modernize::FirstVarDeclName = "FirstVarDecl"
static constexpr StringRef clang::tidy::modernize::SecondVarDeclName = "SecondVarDecl"
static constexpr StringRef clang::tidy::modernize::BeginDeclStmtName = "BeginDeclStmt"
static constexpr StringRef clang::tidy::modernize::EndDeclStmtName = "EndDeclStmt"
static constexpr StringRef clang::tidy::modernize::FirstTypeName = "FirstType"
static constexpr StringRef clang::tidy::modernize::SecondTypeName = "SecondType"
static constexpr StringRef clang::tidy::modernize::ScopeBlockName = "ScopeBlock"
static constexpr StringRef clang::tidy::modernize::StdTieAssignStmtName = "StdTieAssign"
static constexpr StringRef clang::tidy::modernize::StdTieExprName = "StdTieExpr"
static constexpr StringRef clang::tidy::modernize::ForRangeStmtName = "ForRangeStmt"
static constexpr StringRef clang::tidy::modernize::InitExprName = "init_expr"