CodeQL library for C/C++
Search

Module Struct

Provides classes for modeling structs.

Import path

import semmle.code.cpp.Struct

Imports

Class

Provides classes representing C++ classes, including structs, unions, and template classes.

Type

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

Classes

LocalStruct

A C/C++ struct that is directly enclosed by a function. For example, the type MyLocalStruct in: void myFunction() { struct MyLocalStruct { int x, y, z; }; }

NestedStruct

A C/C++ nested struct. See 11.12. For example, the type MyNestedStruct in: class MyClass { public: struct MyNestedStruct { int x, y, z; }; };

Struct

A C/C++ structure or union. For example, the types MyStruct and MyUnion in: ``` struct MyStruct { int x, y, z; };