Module Enum

Import path

import semmle.code.cpp.Enum

Imports

Classes

Enum

A C/C++ enum [N4140 7.2]. For example, the types MyEnum and MyScopedEnum in: ``` enum MyEnum { MyEnumConstant };

EnumConstant

A C/C++ enumerator [N4140 7.2], also known as an enumeration constant.

LocalEnum

A C/C++ enum that is directly enclosed by a function. For example, the type MyLocalEnum in: void myFunction() { enum MyLocalEnum { MyLocalEnumConstant }; }

NestedEnum

A C/C++ enum that is declared within a class/struct. For example, the type MyNestedEnum in: class MyClass { public: enum MyNestedEnum { MyNestedEnumConstant }; };

ScopedEnum

A C++ scoped enum, that is, an enum whose constants must be qualified with the name of the enum. For example, the type Color in: enum class Color { red, blue }