CodeQL library for C/C++
Search

Module CommonType

Import path

import semmle.code.cpp.commons.CommonType

Imports

Type

Provides a hierarchy of classes for modeling C/C++ types.

Classes

BuiltInVarArgsList

The __builtin_va_list type, used to provide variadic functionality.

CharPointerType

The C/C++ char* type.

FastestMinimumWidthIntegralType

A C/C++ minimum-width numeric type, representing the fastest integer type with a width of at least N such as int_fast8_t.

FixedWidthEnumType

An enum type based on a fixed-width integer type. For instance, enum e: uint8_t = { a, b };

FixedWidthIntegralType

A C/C++ fixed-width numeric type, such as int8_t.

Int16_t

The C/C++ int16_t type.

Int32_t

The C/C++ int32_t type.

Int64_t

The C/C++ int64_t type.

Int8_t

The C/C++ int8_t type.

IntPointerType

The C/C++ int* type.

Int_fast16_t

The C/C++ int_fast16_t type.

Int_fast32_t

The C/C++ int_fast32_t type.

Int_fast64_t

The C/C++ int_fast64_t type.

Int_fast8_t

The C/C++ int_fast8_t type.

Int_least16_t

The C/C++ int_least16_t type.

Int_least32_t

The C/C++ int_least32_t type.

Int_least64_t

The C/C++ int_least64_t type.

Int_least8_t

The C/C++ int_least8_t type.

Intmax_t

The C/C++ intmax_t type.

MaximumWidthIntegralType

A C/C++ maximum-width numeric type, either intmax_t or uintmax_t.

MicrosoftInt16Type

The type that the Microsoft C/C++ __int16 type specifier is a synonym for. Note that since __int16 is not a distinct type, MicrosoftInt16Type corresponds to an existing IntegralType as well.

MicrosoftInt32Type

The type that the Microsoft C/C++ __int32 type specifier is a synonym for. Note that since __int32 is not a distinct type, MicrosoftInt32Type corresponds to an existing IntegralType as well.

MicrosoftInt64Type

The type that the Microsoft C/C++ __int64 type specifier is a synonym for. Note that since __int64 is not a distinct type, MicrosoftInt64Type corresponds to an existing IntegralType as well.

MicrosoftInt8Type

The type that the Microsoft C/C++ __int8 type specifier is a synonym for. Note that since __int8 is not a distinct type, MicrosoftInt8Type corresponds to an existing IntegralType as well.

MinimumWidthIntegralType

A C/C++ minimum-width numeric type, such as int_least8_t.

Ptrdiff_t

The C/C++ ptrdiff_t type.

Size_t

The C/C++ size_t type.

Ssize_t

The C/C++ ssize_t type.

UInt16_t

The C/C++ uint16_t type.

UInt32_t

The C/C++ uint32_t type.

UInt64_t

The C/C++ uint64_t type.

UInt8_t

The C/C++ uint8_t type.

UInt_fast16_t

The C/C++ uint_fast16_t type.

UInt_fast32_t

The C/C++ uint_fast32_t type.

UInt_fast64_t

The C/C++ uint_fast64_t type.

UInt_fast8_t

The C/C++ uint_fast8_t type.

UInt_least16_t

The C/C++ uint_least16_t type.

UInt_least32_t

The C/C++ uint_least32_t type.

UInt_least64_t

The C/C++ uint_least64_t type.

UInt_least8_t

The C/C++ uint_least8_t type.

Uintmax_t

The C/C++ uintmax_t type.

VoidPointerType

The C/C++ void* type.

Wchar_t

The C/C++ wchar_t type.