mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
CPP: Brace placement.
This commit is contained in:
@@ -5,11 +5,13 @@ import semmle.code.cpp.Class
|
||||
* A C/C++ structure or union. For example, the types `MyStruct` and `MyUnion`
|
||||
* in:
|
||||
* ```
|
||||
* struct MyStruct {
|
||||
* struct MyStruct
|
||||
* {
|
||||
* int x, y, z;
|
||||
* };
|
||||
*
|
||||
* union MyUnion {
|
||||
* union MyUnion
|
||||
* {
|
||||
* int i;
|
||||
* float f;
|
||||
* };
|
||||
@@ -32,7 +34,8 @@ class Struct extends Class {
|
||||
* ```
|
||||
* void myFunction()
|
||||
* {
|
||||
* struct MyLocalStruct {
|
||||
* struct MyLocalStruct
|
||||
* {
|
||||
* int x, y, z;
|
||||
* };
|
||||
* }
|
||||
@@ -53,7 +56,8 @@ class LocalStruct extends Struct {
|
||||
* class MyClass
|
||||
* {
|
||||
* public:
|
||||
* struct MyNestedStruct {
|
||||
* struct MyNestedStruct
|
||||
* {
|
||||
* int x, y, z;
|
||||
* };
|
||||
* };
|
||||
|
||||
Reference in New Issue
Block a user