CodeQL library for C/C++
Search

Module UserType

Provides classes for modeling user-defined types such as classes, typedefs and enums.

Import path

import semmle.code.cpp.UserType

Imports

Declaration

Provides classes for working with C and C++ declarations.

Function

Provides classes for working with functions, including template functions.

Type

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

Classes

TypeDeclarationEntry

A particular definition or forward declaration of a C/C++ user-defined type. class C; typedef int ti;

UserType

A C/C++ user-defined type. Examples include class, struct, union, enum and typedef types. enum e1 { val1, val2 } b; enum class e2: short { val3, val4 } c; typedef int my_int; class C { int a, b; };