CodeQL library for C/C++
Search

Module Field

Provides classes representing C structure members and C++ non-static member variables.

Import path

import semmle.code.cpp.Field

Imports

Access

Provides classes for modeling accesses including variable accesses, enum constant accesses and function accesses.

Enum

Provides classes representing C/C++ enums and enum constants.

Variable

Provides classes for modeling variables and their declarations.

Classes

BitField

A C structure member or C++ member variable declared with an explicit size in bits. For example the member variable x in the following code: struct MyStruct { int x : 3; };

Field

A C structure member or C++ non-static member variable. For example the member variable m in the following code (but not s): class MyClass { public: int m; static int s; };