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

Module TypedefType

Provides classes for modeling typedefs and type aliases.

Import path

import semmle.code.cpp.TypedefType

Imports

Type

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

Classes

CTypedefType

A traditional C/C++ typedef type. See 4.9.1. For example the type declared in the following code: typedef int my_int;

LocalTypedefType

A C++ typedef type that is directly enclosed by a function. For example the type declared inside the function foo in the following code: int foo(void) { typedef int local; }

NestedTypedefType

A C++ typedef type that is directly enclosed by a class, struct or union. For example the type declared inside the class C in the following code: class C { typedef int nested; };

TypedefType

A C/C++ typedef type. See 4.9.1. For example the types declared on each line of the following code: typedef int my_int; using my_int2 = int;

UsingAliasTypedefType

A using alias C++ typedef type. For example the type declared in the following code: using my_int2 = int;