clang 23.0.0git
clang::ASTStructuralEquivalence Namespace Reference

Expose these functions so that they can be called by the functions that check equivalence of attribute arguments. More...

Functions

bool isEquivalent (StructuralEquivalenceContext &Context, QualType T1, QualType T2)
 Determine structural equivalence of two types.
bool isEquivalent (StructuralEquivalenceContext &Context, const Stmt *S1, const Stmt *S2)
 Determine structural equivalence of two statements.
bool isEquivalent (const IdentifierInfo *Name1, const IdentifierInfo *Name2)
 Determine whether two identifiers are equivalent.

Detailed Description

Expose these functions so that they can be called by the functions that check equivalence of attribute arguments.

Function Documentation

◆ isEquivalent() [1/3]

bool clang::ASTStructuralEquivalence::isEquivalent ( const IdentifierInfo * Name1,
const IdentifierInfo * Name2 )

Determine whether two identifiers are equivalent.

Definition at line 616 of file ASTStructuralEquivalence.cpp.

References clang::IdentifierInfo::getName().

◆ isEquivalent() [2/3]

bool clang::ASTStructuralEquivalence::isEquivalent ( StructuralEquivalenceContext & Context,
const Stmt * S1,
const Stmt * S2 )

Determine structural equivalence of two statements.

Definition at line 565 of file ASTStructuralEquivalence.cpp.

References clang::Stmt::children(), and IsStructurallyEquivalent().

◆ isEquivalent() [3/3]