clang 20.0.0git
Public Member Functions | Public Attributes | Friends | List of all members
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/Type.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 874 of file Type.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 882 of file Type.h.

Member Function Documentation

◆ asPair()

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

Definition at line 887 of file Type.h.

References Quals, and Ty.

◆ getSingleStepDesugaredType()

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

Definition at line 7743 of file Type.h.

References clang::Qualifiers::addConsistentQualifiers(), and Quals.

Referenced by handleObjCOwnershipTypeAttr().

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 894 of file Type.h.

◆ operator==

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

Definition at line 891 of file Type.h.

Member Data Documentation

◆ Quals

Qualifiers clang::SplitQualType::Quals

◆ Ty

const Type* clang::SplitQualType::Ty = nullptr

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