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

Module Union

Provides classes for modeling unions.

Import path

import semmle.code.cpp.Union

Imports

Struct

Provides classes for modeling structs.

Type

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

Classes

LocalUnion

A C/C++ union that is directly enclosed by a function. For example, the type MyLocalUnion in: void myFunction() { union MyLocalUnion { int i; float f; }; }

NestedUnion

A C/C++ nested union. For example, the type MyNestedUnion in: class MyClass { public: union MyNestedUnion { int i; float f; }; };

Union

A C/C++ union. See C.8.2. For example, the type MyUnion in: union MyUnion { int i; float f; };