clang  6.0.0svn
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"

Collaboration diagram for clang::SplitQualType:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

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

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 557 of file Type.h.

Constructor & Destructor Documentation

◆ SplitQualType() [1/2]

clang::SplitQualType::SplitQualType ( )
inline

Definition at line 564 of file Type.h.

◆ SplitQualType() [2/2]

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

Definition at line 565 of file Type.h.

Member Function Documentation

◆ asPair()

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

Definition at line 570 of file Type.h.

◆ getSingleStepDesugaredType()

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

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

◆ operator==

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

Definition at line 574 of file Type.h.

Member Data Documentation

◆ Quals

Qualifiers clang::SplitQualType::Quals

◆ Ty

const Type* clang::SplitQualType::Ty

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