File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
cpp/ql/src/semmle/code/cpp Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ private import semmle.code.cpp.internal.ResolveClass
44/**
55 * A C/C++ enum [N4140 7.2]. For example, the type `MyEnum` in:
66 * ```
7- * enum MyEnum
8- * {
7+ * enum MyEnum {
98 * MyEnumConstant
109 * };
1110 * ```
@@ -56,10 +55,8 @@ class Enum extends UserType, IntegralOrEnumType {
5655 * A C/C++ enum that is directly enclosed by a function. For example, the type
5756 * `MyLocalEnum` in:
5857 * ```
59- * void myFunction()
60- * {
61- * enum MyLocalEnum
62- * {
58+ * void myFunction() {
59+ * enum MyLocalEnum {
6360 * MyLocalEnumConstant
6461 * };
6562 * }
@@ -77,11 +74,9 @@ class LocalEnum extends Enum {
7774 * A C/C++ enum that is declared within a class/struct. For example, the type
7875 * `MyNestedEnum` in:
7976 * ```
80- * class MyClass
81- * {
77+ * class MyClass {
8278 * public:
83- * enum MyNestedEnum
84- * {
79+ * enum MyNestedEnum {
8580 * MyNestedEnumConstant
8681 * };
8782 * };
@@ -110,8 +105,7 @@ class NestedEnum extends Enum {
110105 * A C++ scoped enum, that is, an enum whose constants must be qualified with
111106 * the name of the enum. For example, the type `Color` in:
112107 * ```
113- * enum class Color
114- * {
108+ * enum class Color {
115109 * red,
116110 * blue
117111 * }
@@ -130,8 +124,7 @@ class ScopedEnum extends Enum {
130124 *
131125 * For example the enumeration constant `green` in:
132126 * ```
133- * enum
134- * {
127+ * enum {
135128 * red,
136129 * green,
137130 * blue
You can’t perform that action at this time.
0 commit comments