clang 19.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 670 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 678 of file Type.h.

Member Function Documentation

◆ asPair()

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

Definition at line 683 of file Type.h.

References Quals, and Ty.

◆ getSingleStepDesugaredType()

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

Definition at line 6895 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 690 of file Type.h.

◆ operator==

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

Definition at line 687 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: