Module Union
Provides classes for modeling unions.
Import path
import semmle.code.cpp.Union
Imports
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; }; |