clang API Documentation

Public Member Functions
clang::TypeLocBuilder Class Reference

#include <TypeLocBuilder.h>

List of all members.

Public Member Functions

 TypeLocBuilder ()
 ~TypeLocBuilder ()
void reserve (size_t Requested)
 Ensures that this buffer has at least as much capacity as described.
void pushFullCopy (TypeLoc L)
TypeSpecTypeLoc pushTypeSpec (QualType T)
void clear ()
 Resets this builder to the newly-initialized state.
void TypeWasModifiedSafely (QualType T)
 Tell the TypeLocBuilder that the type it is storing has been modified in some safe way that doesn't affect type-location information.
template<class TyLocType >
TyLocType push (QualType T)
TypeSourceInfogetTypeSourceInfo (ASTContext &Context, QualType T)
 Creates a TypeSourceInfo for the given type.
TypeLoc getTypeLocInContext (ASTContext &Context, QualType T)
 Copies the type-location information to the given AST context and returns a TypeLoc referring into the AST context.

Detailed Description

Definition at line 23 of file TypeLocBuilder.h.


Constructor & Destructor Documentation

Definition at line 47 of file TypeLocBuilder.h.

Definition at line 53 of file TypeLocBuilder.h.


Member Function Documentation

void clang::TypeLocBuilder::clear ( ) [inline]

Resets this builder to the newly-initialized state.

Definition at line 78 of file TypeLocBuilder.h.

Copies the type-location information to the given AST context and returns a TypeLoc referring into the AST context.

Definition at line 117 of file TypeLocBuilder.h.

References clang::ASTContext::Allocate().

Referenced by clang::Sema::ActOnCXXNestedNameSpecifier(), clang::Sema::ActOnCXXNestedNameSpecifierDecltype(), and clang::Sema::BuildCXXNestedNameSpecifier().

template<class TyLocType >
TyLocType clang::TypeLocBuilder::push ( QualType  T) [inline]
void clang::TypeLocBuilder::reserve ( size_t  Requested) [inline]

Ensures that this buffer has at least as much capacity as described.

Definition at line 59 of file TypeLocBuilder.h.

Referenced by pushFullCopy(), clang::Sema::SubstFunctionDeclType(), clang::Sema::SubstType(), and clang::TreeTransform< Derived >::TransformType().

Tell the TypeLocBuilder that the type it is storing has been modified in some safe way that doesn't affect type-location information.

Definition at line 88 of file TypeLocBuilder.h.

Referenced by clang::TreeTransform< Derived >::TransformReferenceType().


The documentation for this class was generated from the following files: