Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 1342d86

Browse files
author
Max Schaefer
committed
Autoformat.
1 parent b4b78ff commit 1342d86

4 files changed

Lines changed: 12 additions & 11 deletions

File tree

ql/src/semmle/go/Comments.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Comment extends @comment, AstNode {
4242
* // a line comment
4343
* /* a block
4444
* comment *&#47
45-
*
45+
*
4646
* /* a block
4747
* comment *&#47
4848
* /* another block comment *&#47
@@ -71,7 +71,7 @@ class CommentGroup extends @comment_group, AstNode {
7171
* ```go
7272
* // function documentation
7373
* func double(x int) int { return 2 * x }
74-
*
74+
*
7575
* // generic declaration documentation
7676
* const (
7777
* // specifier documentation
@@ -93,7 +93,7 @@ class Documentable extends AstNode, @documentable {
9393
* ```go
9494
* // function documentation
9595
* func double(x int) int { return 2 * x }
96-
*
96+
*
9797
* // generic declaration documentation
9898
* const (
9999
* // specifier documentation

ql/src/semmle/go/Expr.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ class SimpleName extends Name, Ident { }
15591559
* ```go
15601560
* fmt.Println
15611561
* ```
1562-
*/
1562+
*/
15631563
class QualifiedName extends Name, SelectorExpr { }
15641564

15651565
/**
@@ -1769,7 +1769,7 @@ private predicate isTypeExprTopDown(Expr e) {
17691769
*
17701770
* ```go
17711771
* int
1772-
* func
1772+
* func
17731773
* ```
17741774
*/
17751775
class TypeExpr extends Expr {

ql/src/semmle/go/Stmt.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -832,17 +832,17 @@ class TypeSwitchStmt extends @typeswitchstmt, SwitchStmt {
832832
* ```go
833833
* case i1 = <-c1:
834834
* print("received ", i1, " from c1\n")
835-
*
835+
*
836836
* case c2 <- i2:
837837
* print("sent ", i2, " to c2\n")
838-
*
838+
*
839839
* case i3, ok := (<-c3): // same as: i3, ok := <-c3
840840
* if ok {
841841
* print("received ", i3, " from c3\n")
842842
* } else {
843843
* print("c3 is closed\n")
844844
* }
845-
*
845+
*
846846
* default:
847847
* print("no communication\n")
848848
* ```
@@ -961,7 +961,7 @@ class SelectStmt extends @selectstmt, Stmt {
961961
* for a < b {
962962
* a *= 2
963963
* }
964-
*
964+
*
965965
* for i := 0; i < 10; i++ {
966966
* f(i)
967967
* }
@@ -985,7 +985,7 @@ class LoopStmt extends @loopstmt, Stmt, ScopeNode {
985985
* for a < b {
986986
* a *= 2
987987
* }
988-
*
988+
*
989989
* for i := 0; i < 10; i++ {
990990
* f(i)
991991
* }

ql/src/semmle/go/dataflow/internal/DataFlowUtil.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ class CallNode extends ExprNode {
330330
/**
331331
* Gets the data-flow node corresponding to the `i`th result of this call.
332332
*
333-
* If there is a single result then it is considered to be the 0th result. */
333+
* If there is a single result then it is considered to be the 0th result.
334+
*/
334335
Node getResult(int i) {
335336
i = 0 and result = getResult()
336337
or

0 commit comments

Comments
 (0)