clang 22.0.0git
clang::SplitQualType Struct Reference

A std::pair-like structure for storing a qualified type split into its local qualifiers and its locally-unqualified type. More...

#include "clang/AST/TypeBase.h"

Public Member Functions

 SplitQualType ()=default
 SplitQualType (const Type *ty, Qualifiers qs)
SplitQualType getSingleStepDesugaredType () const
std::pair< const Type *, QualifiersasPair () const

Public Attributes

const TypeTy = nullptr
 The locally-unqualified type.
Qualifiers Quals
 The local qualifiers.

Friends

bool operator== (SplitQualType a, SplitQualType b)
bool operator!= (SplitQualType a, SplitQualType b)

Detailed Description

A std::pair-like structure for storing a qualified type split into its local qualifiers and its locally-unqualified type.

Definition at line 870 of file TypeBase.h.

Constructor & Destructor Documentation

◆ SplitQualType() [1/2]

clang::SplitQualType::SplitQualType ( )
default

◆ SplitQualType() [2/2]

clang::SplitQualType::SplitQualType ( const Type * ty,
Qualifiers qs )
inline

Definition at line 878 of file TypeBase.h.

References Quals, and Ty.

Member Function Documentation

◆ asPair()

std::pair< const Type *, Qualifiers > clang::SplitQualType::asPair ( ) const
inline

Definition at line 883 of file TypeBase.h.

References Quals, and Ty.

◆ getSingleStepDesugaredType()

SplitQualType clang::SplitQualType::getSingleStepDesugaredType ( ) const
inline

◆ operator!=

bool operator!= ( SplitQualType a,
SplitQualType b )
friend

Definition at line 890 of file TypeBase.h.

References b, Quals, SplitQualType(), and Ty.

◆ operator==

bool operator== ( SplitQualType a,
SplitQualType b )
friend

Definition at line 887 of file TypeBase.h.

References b, Quals, SplitQualType(), and Ty.

Member Data Documentation

◆ Quals

◆ Ty


The documentation for this struct was generated from the following file: