File tree Expand file tree Collapse file tree 2 files changed +8
-16
lines changed
cpp/ql/src/semmle/code/cpp Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ import semmle.code.cpp.Class
55 * A C/C++ structure or union. For example, the types `MyStruct` and `MyUnion`
66 * in:
77 * ```
8- * struct MyStruct
9- * {
8+ * struct MyStruct {
109 * int x, y, z;
1110 * };
1211 *
13- * union MyUnion
14- * {
12+ * union MyUnion {
1513 * int i;
1614 * float f;
1715 * };
@@ -32,10 +30,8 @@ class Struct extends Class {
3230 * A C/C++ struct that is directly enclosed by a function. For example, the type
3331 * `MyLocalStruct` in:
3432 * ```
35- * void myFunction()
36- * {
37- * struct MyLocalStruct
38- * {
33+ * void myFunction() {
34+ * struct MyLocalStruct {
3935 * int x, y, z;
4036 * };
4137 * }
@@ -53,11 +49,9 @@ class LocalStruct extends Struct {
5349/**
5450 * A C/C++ nested struct. See 11.12. For example, the type `MyNestedStruct` in:
5551 * ```
56- * class MyClass
57- * {
52+ * class MyClass {
5853 * public:
59- * struct MyNestedStruct
60- * {
54+ * struct MyNestedStruct {
6155 * int x, y, z;
6256 * };
6357 * };
Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ class Union extends Struct {
2626 * A C/C++ union that is directly enclosed by a function. For example, the type
2727 * `MyLocalUnion` in:
2828 * ```
29- * void myFunction()
30- * {
29+ * void myFunction() {
3130 * union MyLocalUnion {
3231 * int i;
3332 * float f;
@@ -46,8 +45,7 @@ class LocalUnion extends Union {
4645/**
4746 * A C/C++ nested union. For example, the type `MyNestedUnion` in:
4847 * ```
49- * class MyClass
50- * {
48+ * class MyClass {
5149 * public:
5250 * union MyNestedUnion {
5351 * int i;
You can’t perform that action at this time.
0 commit comments