Skip to content

Commit 5bdaefd

Browse files
committed
CPP: Brace placement.
1 parent f0e6730 commit 5bdaefd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

cpp/ql/src/semmle/code/cpp/Struct.qll

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ 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 {
8+
* struct MyStruct
9+
* {
910
* int x, y, z;
1011
* };
1112
*
12-
* union MyUnion {
13+
* union MyUnion
14+
* {
1315
* int i;
1416
* float f;
1517
* };
@@ -32,7 +34,8 @@ class Struct extends Class {
3234
* ```
3335
* void myFunction()
3436
* {
35-
* struct MyLocalStruct {
37+
* struct MyLocalStruct
38+
* {
3639
* int x, y, z;
3740
* };
3841
* }
@@ -53,7 +56,8 @@ class LocalStruct extends Struct {
5356
* class MyClass
5457
* {
5558
* public:
56-
* struct MyNestedStruct {
59+
* struct MyNestedStruct
60+
* {
5761
* int x, y, z;
5862
* };
5963
* };

0 commit comments

Comments
 (0)