A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clang.llvm.org/doxygen/ASTStructuralEquivalence_8h_source.html below:

clang: include/clang/AST/ASTStructuralEquivalence.h Source File

14#ifndef LLVM_CLANG_AST_ASTSTRUCTURALEQUIVALENCE_H 15#define LLVM_CLANG_AST_ASTSTRUCTURALEQUIVALENCE_H 18#include "llvm/ADT/DenseMap.h" 19#include "llvm/ADT/DenseSet.h" 28class

DiagnosticBuilder;

126 static

std::optional<unsigned>

143 bool

CheckCommonEquivalence(

Decl

*D1,

Decl

*D2);

148 bool

CheckKindSpecificEquivalence(

Decl

*D1,

Decl

*D2);

Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...

Decl - This represents one declaration (or definition), e.g.

A little helper class used to produce diagnostics.

A (possibly-)qualified type.

Represents a struct/union/class.

Encodes a location in the source.

Stmt - This represents one statement.

@ Decl

The l-value was an access to a declared entity or something equivalently strong, like the address of ...

The JSON file list parser is used to communicate input to InstallAPI.

StructuralEquivalenceKind

Whether to perform a normal or minimal equivalence check.

llvm::DenseSet< std::tuple< Decl *, Decl *, int > > NonEquivalentDeclSet

Store declaration pairs already found to be non-equivalent.

ASTContext & FromCtx

AST contexts for which we are checking structural equivalence.

bool LastDiagFromC2

true if the last diagnostic came from ToCtx.

bool StrictTypeSpelling

Whether we're being strict about the spelling of types when unifying two types.

StructuralEquivalenceContext(ASTContext &FromCtx, ASTContext &ToCtx, NonEquivalentDeclSet &NonEquivalentDecls, StructuralEquivalenceKind EqKind, bool StrictTypeSpelling=false, bool Complain=true, bool ErrorOnTagTypeMismatch=false, bool IgnoreTemplateParmDepth=false)

std::queue< std::pair< Decl *, Decl * > > DeclsToCheck

StructuralEquivalenceKind EqKind

llvm::DenseSet< std::pair< Decl *, Decl * > > VisitedDecls

bool IgnoreTemplateParmDepth

Whether to ignore comparing the depth of template param(TemplateTypeParm)

bool ErrorOnTagTypeMismatch

Whether warn or error on tag type mismatches.

static std::optional< unsigned > findUntaggedStructOrUnionIndex(RecordDecl *Anon)

Find the index of the given anonymous struct/union within its context.

NonEquivalentDeclSet & NonEquivalentDecls

Declaration (from, to) pairs that are known not to be equivalent (which we have already complained ab...

bool Complain

Whether to complain about failures.

DiagnosticBuilder Diag2(SourceLocation Loc, unsigned DiagID)

unsigned getApplicableDiagnostic(unsigned ErrorDiagnostic)

DiagnosticBuilder Diag1(SourceLocation Loc, unsigned DiagID)

bool IsEquivalent(Decl *D1, Decl *D2)

Determine whether the two declarations are structurally equivalent.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4