CodeQL library for C/C++
codeql/cpp-all 0.12.12-dev (changelog, source)
Search

Class CppWrappedType

A CppType that wraps an existing Type (either as a prvalue or a glvalue).

Import path

import semmle.code.cpp.ir.internal.CppType

Direct supertypes

Indirect supertypes

Known direct subtypes

    Fields

    Inherited predicates

    getByteSize

    Gets the size of the type in bytes, if known.

    from CppType
    getDumpString

    Gets a string used in IR dumps

    from CppType
    getIRType

    Gets the IRType that represents this CppType. Many different CppTypes can map to a single IRType.

    from CppType
    hasType

    Holds if the CppType represents a prvalue of type Type (if isGLValue is false), or if it represents a glvalue of type Type (if isGLValue is true).

    from CppType
    hasUnderlyingType

    Holds if this type represents the C++ type type (after resolving typedefs). If isGLValue is true, then this type represents a glvalue of type type. Otherwise, it represents a prvalue of type type.

    from CppType
    hasUnspecifiedType

    Holds if this type represents the C++ unspecified type type. If isGLValue is true, then this type represents a glvalue of type type. Otherwise, it represents a prvalue of type type.

    from CppType
    toString

    Gets a textual representation of this type.

    from CppType

    Charpred