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

Class CppUnknownType

A CppType that represents an unknown type.

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getIRType

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

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).

toString

Gets a textual representation of this type.

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
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