blob: a0aa680ac97e7d5d075b337f5a9ecf5bff32f4e4 [file] [log] [blame]
40 columns |
>>> Inline block comment before first parameter.
Function(/* c */a,b) x;
<<<
Function(/* c */ a, b) x;
>>> Inline block comment before ",".
Function(a/* c */,b) x;
<<<
Function(a /* c */, b) x;
>>> Inline block comment after ",".
Function(a,/* c */b) x;
<<<
Function(a, /* c */ b) x;
>>> Inline block comment before "[".
Function(a /* c */, [b]) x;
<<<
Function(a /* c */, [b]) x;
>>> Inline block comment after "[".
Function([/* c */ arg]) x;
<<<
Function([/* c */ arg]) x;
>>> Inline block comment before "]".
Function([arg/* c */]) x;
<<<
Function([arg /* c */]) x;
>>> Inline block comment after "]".
Function([arg]/* c */) x;
<<<
Function([arg /* c */]) x;
>>> Inline block comment before "{".
Function(a,/* c */{int b}) x;
<<<
Function(a /* c */, {int b}) x;
>>> Inline block comment after "{".
Function({/* c */int arg}) x;
<<<
Function({/* c */ int arg}) x;
>>> Inline block comment before "}".
Function({int arg/* c */}) x;
<<<
Function({int arg /* c */}) x;
>>> Inline block comment after "{".
Function({int arg}/* c */) x;
<<<
Function({int arg /* c */}) x;
>>> Non-inline block comment before first parameter.
Function(
/* c */
a,b) x;
<<<
Function(
/* c */
a,
b,
) x;
>>> Non-inline block comment before ",".
Function(a
/* c */
,b) x;
<<<
Function(
a,
/* c */
b,
) x;
>>> Non-inline block comment after ",".
Function(a,
/* c */
b) x;
<<<
Function(
a,
/* c */
b,
) x;
>>> Non-inline block comment before "[".
Function(a
/* c */
, [b]) x;
<<<
Function(
a, [
/* c */
b,
]) x;
>>> Non-inline block comment after "[".
Function([
/* c */
arg]) x;
<<<
Function([
/* c */
arg,
]) x;
>>> Non-inline block comment before "]".
Function([arg
/* c */
]) x;
<<<
Function([
arg,
/* c */
]) x;
>>> Non-inline block comment after "]".
Function([arg]
/* c */
) x;
<<<
Function([
arg,
/* c */
]) x;
>>> Non-inline block comment before "{".
Function(a,
/* c */
{int b}) x;
<<<
Function(
a, {
/* c */
int b,
}) x;
>>> Non-inline block comment after "{".
Function({
/* c */
int arg}) x;
<<<
Function({
/* c */
int arg,
}) x;
>>> Non-inline block comment before "}".
Function({int arg
/* c */
}) x;
<<<
Function({
int arg,
/* c */
}) x;
>>> Non-inline block comment after "{".
Function({int arg}
/* c */
) x;
<<<
Function({
int arg,
/* c */
}) x;
>>> Line comment before first parameter.
Function(// c
a,b) x;
<<<
Function(
// c
a,
b,
) x;
>>> Line comment before ",".
Function(a// c
,b) x;
<<<
Function(
a, // c
b,
) x;
>>> Line comment after ",".
Function(a,// c
b) x;
<<<
Function(
a, // c
b,
) x;
>>> Line comment before "[".
Function(a,// c
[b]) x;
<<<
### Note: Moves comment after `[`.
Function(
a, [ // c
b,
]) x;
>>> Line comment after "[".
Function([// c
arg]) x;
<<<
Function([
// c
arg,
]) x;
>>> Line comment before "]".
Function([arg// c
]) x;
<<<
Function([
arg, // c
]) x;
>>> Line comment after "]".
Function([arg]// c
) x;
<<<
Function([
arg, // c
]) x;
>>> Line comment before "{".
Function(a,// c
{int b}) x;
<<<
Function(
a, { // c
int b,
}) x;
>>> Line comment after "{".
Function({// c
int arg}) x;
<<<
Function({
// c
int arg,
}) x;
>>> Line comment before "}".
Function({int arg// c
}) x;
<<<
Function({
int arg, // c
}) x;
>>> Line comment after "{".
Function({int arg}// c
) x;
<<<
Function({
int arg, // c
}) x;
>>> Doc comment before first parameter.
Function(/// c
a,b) x;
<<<
Function(
/// c
a,
b,
) x;
>>> Doc comment before ",".
Function(a/// c
,b) x;
<<<
Function(
a,
/// c
b,
) x;
>>> Doc comment after ",".
Function(a,/// c
b) x;
<<<
Function(
a,
/// c
b,
) x;
>>> Doc comment before "[".
Function(a,/// c
[b]) x;
<<<
### Note: Moves comment after `[`.
Function(
a, [
/// c
b,
]) x;
>>> Doc comment after "[".
Function([/// c
arg]) x;
<<<
Function([
/// c
arg,
]) x;
>>> Doc comment before "]".
Function([arg/// c
]) x;
<<<
Function([
arg,
/// c
]) x;
>>> Doc comment after "]".
Function([arg]/// c
) x;
<<<
Function([
arg,
/// c
]) x;
>>> Doc comment before "{".
Function(a,/// c
{int b}) x;
<<<
Function(
a, {
/// c
int b,
}) x;
>>> Doc comment after "{".
Function({/// c
int arg}) x;
<<<
Function({
/// c
int arg,
}) x;
>>> Doc comment before "}".
Function({int arg/// c
}) x;
<<<
Function({
int arg,
/// c
}) x;
>>> Doc comment after "{".
Function({int arg}/// c
) x;
<<<
Function({
int arg,
/// c
}) x;
>>> Comment before removed mandatory trailing comma.
Function(a/* c */,) x;
<<<
Function(a /* c */) x;
>>> Comment after removed mandatory trailing comma.
Function(a,/* c */) x;
<<<
Function(a /* c */) x;
>>> Comments before and after removed mandatory trailing comma.
Function(a/* c1 */,/* c2 */) x;
<<<
Function(a /* c1 */ /* c2 */) x;
>>> Comment at inserted mandatory trailing comma.
Function(veryLongParameterName/* c */) x;
<<<
Function(
veryLongParameterName /* c */,
) x;
>>> Comment before removed optional trailing comma.
Function([a/* c */,]) x;
<<<
Function([a /* c */]) x;
>>> Comment after removed optional trailing comma.
Function([a,/* c */]) x;
<<<
Function([a /* c */]) x;
>>> Comments before and after removed optional trailing comma.
Function([a/* c1 */,/* c2 */]) x;
<<<
Function([a /* c1 */ /* c2 */]) x;
>>> Comment at inserted optional trailing comma.
Function([veryLongParameterName/* c */]) x;
<<<
Function([
veryLongParameterName /* c */,
]) x;
>>> Comment before removed named trailing comma.
Function({int a/* c */,}) x;
<<<
Function({int a /* c */}) x;
>>> Comment after removed named trailing comma.
Function({int a,/* c */}) x;
<<<
Function({int a /* c */}) x;
>>> Comments before and after removed named trailing comma.
Function({int a/* c1 */,/* c2 */}) x;
<<<
Function({int a /* c1 */ /* c2 */}) x;
>>> Comment at inserted named trailing comma.
Function({int veryLongParameterName/* c */}) x;
<<<
Function({
int veryLongParameterName /* c */,
}) x;
>>> Wrap inline Inline block comment.
Function(/* a very long Inline block comment */) x;
<<<
Function(
/* a very long Inline block comment */
) x;
>>> Before parameter.
Function(
/* comment */ int a, int b, int c,
[direction]) x;
<<<
Function(
/* comment */ int a,
int b,
int c, [
direction,
]) x;