Michal Nazarewicz
fab2332851
cc-mode: add ‘c-lineup-ternary-bodies’ (bug#41061)
...
Introduce ‘c-lineup-ternary-bodies’ function which, when used as
a c lineup function, aligns question mark and colon of a ternary
operator. For example:
return arg % 2 == 0 ? arg / 2
: (3 * arg + 1);
* lisp/progmodes/cc-align.el (c-lineup-ternary-bodies): New function.
* doc/misc/cc-mode.texi (Operator Line-Up Functions): Document the
new function.
* test/lisp/progmodes/cc-mode-tests.el (c-lineup-ternary-bodies): New
test case.
2020-05-09 11:30:32 +01:00
..
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 01:08:16 +00:00
2020-05-09 11:30:32 +01:00
2020-02-20 16:03:30 +01:00
2020-01-01 00:59:52 +00:00
2020-03-08 16:21:15 +00:00
2020-03-14 12:27:20 +00:00
2020-04-03 20:37:31 +00:00
2020-05-01 19:31:19 +01:00
2020-01-01 00:59:52 +00:00
2020-03-08 16:21:15 +00:00
2020-01-07 20:11:37 +00:00
2020-03-08 16:21:15 +00:00
2020-01-01 00:59:52 +00:00
2020-05-01 19:31:19 +01:00
2020-02-25 18:15:12 -05:00
2020-04-11 13:56:03 -04:00
2020-01-01 00:59:52 +00:00
2020-04-01 03:04:31 +03:00
2020-03-01 01:56:42 +01:00
2020-01-01 00:59:52 +00:00
2020-03-21 02:48:24 +01:00
2020-01-01 00:59:52 +00:00
2020-04-15 07:50:15 -07:00
2020-02-20 15:52:23 +01:00
2020-02-20 15:52:23 +01:00
2020-02-20 15:52:23 +01:00
2020-02-20 15:52:23 +01:00
2020-02-20 15:52:23 +01:00
2020-01-01 00:59:52 +00:00
2020-02-20 15:52:23 +01:00
2020-03-28 09:43:14 -04:00
2020-05-01 12:11:10 +01:00
2020-01-18 00:23:46 +03:00
2020-04-14 12:25:16 +02:00
2020-01-15 18:49:21 -08:00
2020-01-01 00:59:52 +00:00
2020-01-10 18:15:03 +01:00
2020-04-13 08:00:14 +03:00
2020-02-20 16:03:30 +01:00
2020-04-16 12:14:38 +02:00
2020-01-01 00:59:52 +00:00
2020-01-21 09:16:25 -05:00
2020-04-06 09:56:15 +02:00
2020-01-01 01:08:16 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 01:08:16 +00:00
2020-02-20 16:05:18 +01:00
2020-01-01 00:59:52 +00:00
2020-01-16 23:06:04 -08:00
2020-01-16 23:06:04 -08:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-16 23:06:04 -08:00
2020-01-01 00:59:52 +00:00
2020-02-25 18:15:12 -05:00
2020-02-20 16:03:30 +01:00
2020-02-29 14:50:51 -08:00
2020-02-20 16:03:30 +01:00
2020-01-01 00:59:52 +00:00
2020-04-29 22:46:17 +03:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-02-25 18:15:12 -05:00
2020-02-20 16:05:18 +01:00
2020-04-16 12:14:38 +02:00
2020-02-20 16:05:18 +01:00
2020-02-20 11:25:25 +01:00
2020-03-14 15:39:31 -04:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-01-01 00:59:52 +00:00
2020-02-23 17:18:08 -05:00
2020-03-04 13:57:58 -08:00
2020-01-01 00:59:52 +00:00
2020-03-30 23:16:27 +03:00
2020-01-01 00:59:52 +00:00