Skip to content

Commit fb71f78

Browse files
author
Dave Bartolomeo
committed
C++: Fix formatting
1 parent 82e2816 commit fb71f78

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

cpp/ql/src/semmle/code/cpp/exprs/BuiltInOperations.qll

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,12 @@ class BuiltInVarArgsStart extends BuiltInOperation, @vastartexpr {
4040
/**
4141
* Gets the `va_list` argument.
4242
*/
43-
final Expr getVAList() {
44-
result = getChild(0)
45-
}
43+
final Expr getVAList() { result = getChild(0) }
4644

4745
/**
4846
* Gets the argument that specifies the last named parameter before the ellipsis.
4947
*/
50-
final VariableAccess getLastNamedParameter() {
51-
result = getChild(1)
52-
}
48+
final VariableAccess getLastNamedParameter() { result = getChild(1) }
5349
}
5450

5551
/**
@@ -69,9 +65,7 @@ class BuiltInVarArgsEnd extends BuiltInOperation, @vaendexpr {
6965
/**
7066
* Gets the `va_list` argument.
7167
*/
72-
final Expr getVAList() {
73-
result = getChild(0)
74-
}
68+
final Expr getVAList() { result = getChild(0) }
7569
}
7670

7771
/**
@@ -89,9 +83,7 @@ class BuiltInVarArg extends BuiltInOperation, @vaargexpr {
8983
/**
9084
* Gets the `va_list` argument.
9185
*/
92-
final Expr getVAList() {
93-
result = getChild(0)
94-
}
86+
final Expr getVAList() { result = getChild(0) }
9587
}
9688

9789
/**
@@ -111,16 +103,12 @@ class BuiltInVarArgCopy extends BuiltInOperation, @vacopyexpr {
111103
/**
112104
* Gets the destination `va_list` argument.
113105
*/
114-
final Expr getDestinationVAList() {
115-
result = getChild(0)
116-
}
106+
final Expr getDestinationVAList() { result = getChild(0) }
117107

118108
/**
119109
* Gets the the source `va_list` argument.
120110
*/
121-
final Expr getSourceVAList() {
122-
result = getChild(1)
123-
}
111+
final Expr getSourceVAList() { result = getChild(1) }
124112
}
125113

126114
/**

0 commit comments

Comments
 (0)