class LocInfoType

Declaration

class LocInfoType : public Type { /* full declaration omitted */ };

Description

Holds a QualType and a TypeSourceInfo* that came out of a declarator parsing. LocInfoType is a "transient" type, only needed for passing to/from Parser and Sema, when we want to preserve type source info for a parsed type. It will not participate in the type system semantics in any way.

Declared at: clang/include/clang/AST/LocInfoType.h:28

Inherits from: Type

Member Variables

private clang::TypeSourceInfo* DeclInfo

Inherited from Type:

protected

Method Overview

  • private LocInfoType(clang::QualType ty, clang::TypeSourceInfo * TInfo)
  • public static bool classof(const clang::Type * T)
  • public void getAsStringInternal(std::string & Str, const clang::PrintingPolicy & Policy) const
  • public clang::QualType getType() const
  • public clang::TypeSourceInfo * getTypeSourceInfo() const

Inherited from Type:

Inherited from ExtQualsTypeCommonBase:

    Methods

    LocInfoType(clang::QualType ty,
                clang::TypeSourceInfo* TInfo)

    Declared at: clang/include/clang/AST/LocInfoType.h:37

    Parameters

    clang::QualType ty
    clang::TypeSourceInfo* TInfo

    static bool classof(const clang::Type* T)

    Declared at: clang/include/clang/AST/LocInfoType.h:50

    Parameters

    const clang::Type* T

    void getAsStringInternal(
        std::string& Str,
        const clang::PrintingPolicy& Policy) const

    Declared at: clang/include/clang/AST/LocInfoType.h:47

    Parameters

    std::string& Str
    const clang::PrintingPolicy& Policy

    clang::QualType getType() const

    Declared at: clang/include/clang/AST/LocInfoType.h:44

    clang::TypeSourceInfo* getTypeSourceInfo() const

    Declared at: clang/include/clang/AST/LocInfoType.h:45