summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/34258-long_lines.cpp
blob: d92ea1088cb29547aed2a11c4d1a6a460458547b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
void main()
{
	if (true)
	{
		// Output the coordinates of the icon
		snprintf(&ret[strlen(ret)], ret_max - strlen(ret), "\nx=\"0px\"\ny=\"0px\"\n");
		snprintf(&ret[strlen(ret)], ret_max - strlen(ret), "width=\"%d\"\n", icon->icon_width);
		snprintf(&ret[strlen(ret)], ret_max - strlen(ret), "height=\"%d\"\n", icon->icon_height);
		snprintf(&ret[strlen(ret)], ret_max - strlen(ret), "viewBox=\"%lf %lf %lf %lf\"\n", icon->x,
		        icon->y, icon->width, icon->height);

		snprintf(&ret[strlen(ret)], ret_max - strlen(ret), icon->x, icon->y,
		        bar("viewBox=\"%lf %lf %lf %lf\"\n", icon->width), icon->height);

		snprintf(&ret[strlen(ret)], ret_max - strlen(ret), "viewBox=\"%lf %lf %lf %lf\"\n", icon->x,
		        icon->y, icon->width, icon->height);
		snprintf(&ret[strlen(ret)], ret_max - strlen(ret), "viewBox=\"%lf %lf %lf %lf\"\n",
		        foo(icon->x, icon->y, icon->width), icon->height);
		snprintf(&ret[strlen(ret)], ret_max - strlen(ret), icon->x, icon->y,
		        bar("viewBox=\"%lf %lf %lf %lf\"\n", icon->width), icon->height);
		snprintf(&ret[strlen(ret)], ret_max - foo(ret, par), icon->x, icon->y,
		        bar("viewBox=\"%lf %lf %lf %lf\"\n", icon->width), icon->height);

		create_a_reeeeeeeeeeeeeeeeeeeeeeeeeeeeally_long_identifier name(some_function(bar1 + bar2),
		        bar3, bar4);
		create_a_reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeally_long_identifier name(some_function(
		        bar1 + bar2), bar3, bar4);

		abc.def.ghi = call_some_other_really_long_function.of_some_sort_of_very_very_very_loooooooooong(
		        some_long_parameter1, some_long_parameter2);
	}
}

#define FOO(bar) create_a_really_long_identifier name(some_function(bar1 + bar2), bar3, bar4);