Skip to content

Commit c406746

Browse files
committed
CPP: Brace placement.
1 parent 82bf631 commit c406746

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,8 @@ class PureVirtualFunction extends VirtualFunction {
892892
* {
893893
* ...
894894
*
895-
* int day() const {
895+
* int day() const
896+
* {
896897
* return d;
897898
* }
898899
*
@@ -1292,7 +1293,8 @@ class MoveAssignmentOperator extends Operator {
12921293
* the function `myTemplateFunction` in the following code:
12931294
* ```
12941295
* template<class T>
1295-
* void myTemplateFunction(T t) {
1296+
* void myTemplateFunction(T t)
1297+
* {
12961298
* ...
12971299
* }
12981300
* ```
@@ -1337,11 +1339,13 @@ class TemplateFunction extends Function {
13371339
* the instantiation `myTemplateFunction<int>` in the following code:
13381340
* ```
13391341
* template<class T>
1340-
* void myTemplateFunction(T t) {
1342+
* void myTemplateFunction(T t)
1343+
* {
13411344
* ...
13421345
* }
13431346
*
1344-
* void caller(int i) {
1347+
* void caller(int i)
1348+
* {
13451349
* myTemplateFunction<int>(i);
13461350
* }
13471351
* ```
@@ -1370,7 +1374,8 @@ class FunctionTemplateInstantiation extends Function {
13701374
* function `myTemplateFunction<int>` in the following code:
13711375
* ```
13721376
* template<class T>
1373-
* void myTemplateFunction(T t) {
1377+
* void myTemplateFunction(T t)
1378+
* {
13741379
* ...
13751380
* }
13761381
*

0 commit comments

Comments
 (0)