Alan Mackenzie
643e32340d
CC Mode: Fix various minor indentation bugs
...
As part of this, introduce a second anchor point to the
syntactic symbols brace-list-intro and enum-intro, the position
of the opening brace.
* lisp/progmodes/cc-align.el
(c-lineup-item-after-paren-at-boi): New function.
* /lisp/progmodes/cc-engine.el
(c-foreign-truncate-lit-pos-cache)
(c-foreign-init-lit-pos-cache): Use
c-truncate-lit-pos/state-cache in place of an older function.
(c-no-bracelist-cache): Update its definition to exclude
conses.
(c-strip-conses): New function.
(c-inside-bracelist-p): Use c-strip-conses.
(c-add-stmt-syntax): In the "go out a block" loop, go out of a
brace at BOI when there's non-whitespace text after it.
Refactor an `if' form containing a cond form into a cond form.
Add the new second second anchor point into syntactic contexts
with brace-list-intro and enum-intro. Anchor brace-list-close
and enum-close elements on the individual declarations in
struct, etc., variable declarations.
(c-guess-basic-syntax, CASE 20): Use the new constraint-cont
syntactic symbol.
(c-guess-basic-syntax, CASE 9B): Anchor brace-list-close and
enum-close elements on the individual declarations in struct,
etc., variable declarations.
(c-guess-basic-syntax, CASEs 9C, 9D): Add the new second anchor
point into brace-list-intro and enum-intro syntactic contexts.
* lisp/progmodes/cc-mode.el (c-locate-first-punctuation-prop):
New function.
(c-depropertize-CPP): Use c-locate-first-punctuation-prop.
* lisp/progmodes/cc-vars.el (c-offsets-alist): Amend the
entries for constraint-cont, brace-list-intro, and enum-intro,
using c-lineup-item-after-paren-at-boi.
* doc/misc/cc-mode.texi (List Line-Up): Add a description of
c-lineup-item-after-paren-at-boi.
2024-12-31 18:39:57 +00:00
..
2024-12-26 10:23:11 +02:00
2024-12-21 07:56:28 -05:00
2024-12-18 03:48:35 +01:00
2024-12-29 19:57:28 +02:00
2024-10-04 01:38:11 +02:00
2024-12-28 08:30:31 -05:00
2024-12-28 08:30:31 -05:00
2024-12-28 08:30:31 -05:00
2024-12-15 19:55:24 +01:00
2024-12-16 20:19:49 +02:00
2024-07-28 09:44:44 +03:00
2024-12-20 00:01:24 +01:00
2024-12-28 08:30:31 -05:00
2024-10-04 01:38:11 +02:00
2024-12-30 12:42:00 +01:00
2024-07-25 10:48:03 +02:00
2024-11-21 10:06:19 +01:00
2024-12-28 08:30:31 -05:00
2024-10-04 01:38:11 +02:00
2024-12-31 18:39:57 +00:00
2024-12-12 12:51:13 +02:00
2024-12-30 00:21:46 -08:00
2024-12-21 07:56:08 -05:00
2024-09-07 06:25:15 -04:00
2024-12-28 08:30:31 -05:00
2024-02-23 13:02:27 +01:00
2024-04-08 14:21:15 +02:00
2024-10-01 23:56:06 +02:00
2024-10-01 23:56:06 +02:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-12-10 03:40:14 +02:00
2024-10-24 16:50:07 +08:00
2024-01-02 09:47:10 +08:00
2024-11-23 12:49:56 +01:00
2024-10-19 12:36:32 +02:00
2024-06-29 21:59:39 +02:00
2024-10-24 16:50:07 +08:00
2024-01-02 09:47:10 +08:00
2024-06-16 15:28:54 +08:00
2024-03-21 19:40:20 -04:00
2024-10-05 13:06:49 +03:00
2024-12-16 20:19:49 +02:00
2024-01-02 10:28:14 +08:00
2024-10-24 16:50:07 +08:00
2024-10-11 12:14:42 +02:00
2024-12-26 21:02:45 +01:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-06-23 16:40:06 +02:00
2024-01-02 09:47:10 +08:00
2024-01-02 10:28:14 +08:00
2024-01-02 10:28:14 +08:00
2024-07-18 11:46:50 +02:00
2024-07-18 11:46:50 +02:00
2024-01-02 10:28:14 +08:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-07-18 11:46:50 +02:00
2024-01-02 10:28:14 +08:00
2024-01-02 10:28:14 +08:00
2024-01-02 10:28:14 +08:00
2024-10-05 02:30:41 +02:00
2024-10-05 02:30:41 +02:00
2024-01-04 18:44:43 -05:00
2024-01-02 09:47:10 +08:00
2024-12-04 09:40:33 +02:00
2024-11-09 12:45:14 +02:00
2024-12-16 20:12:25 +02:00
2024-11-23 14:56:50 +01:00
2024-07-18 11:46:50 +02:00
2024-01-02 10:28:14 +08:00
2024-01-02 09:47:10 +08:00
2024-11-17 17:49:49 -05:00
2024-11-17 17:49:49 -05:00
2024-06-03 16:36:29 +08:00
2024-01-02 10:28:14 +08:00
2024-10-24 16:50:07 +08:00
2024-11-30 23:28:06 +01:00
2024-01-02 09:47:10 +08:00
2024-10-26 14:52:29 -04:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-04-09 10:39:36 +08:00
2024-12-07 06:50:27 -05:00
2024-10-24 16:50:07 +08:00
2024-12-26 14:07:30 +02:00
2024-10-04 01:38:11 +02:00
2024-10-22 06:40:19 +02:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-10-24 16:50:07 +08:00
2024-10-18 08:06:40 +02:00
2024-10-24 16:50:07 +08:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-01-02 10:28:14 +08:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-06-24 20:34:53 +02:00
2024-07-08 17:09:31 -04:00
2024-06-24 20:34:53 +02:00
2024-06-24 20:34:53 +02:00
2024-06-24 20:34:53 +02:00
2024-12-28 08:30:31 -05:00
2024-04-09 10:28:05 -04:00
2024-01-02 09:47:10 +08:00
2024-09-22 10:10:35 +02:00
2024-10-05 13:11:04 +03:00
2024-09-02 21:02:09 +02:00
2024-01-02 09:47:10 +08:00
2024-05-14 11:17:25 +02:00
2024-01-02 09:47:10 +08:00
2024-10-24 16:50:07 +08:00
2024-01-02 09:47:10 +08:00
2024-07-27 11:01:36 +02:00
2024-12-04 15:21:13 +02:00
2024-10-24 16:50:07 +08:00
2024-01-02 09:47:10 +08:00
2024-08-10 10:54:18 +03:00
2024-01-02 09:47:10 +08:00
2024-07-25 03:35:18 +02:00
2024-01-02 09:47:10 +08:00
2024-05-21 15:40:51 +03:00
2024-01-02 09:47:10 +08:00
2024-12-16 20:19:49 +02:00
2024-12-14 14:38:29 +02:00
2024-12-19 04:45:21 +01:00
2024-01-02 09:47:10 +08:00
2024-10-24 16:50:07 +08:00
2024-11-09 07:35:12 -05:00
2024-12-26 21:24:59 +01:00
2024-09-26 02:10:16 +02:00
2024-01-02 09:47:10 +08:00
2024-10-24 16:50:07 +08:00
2024-10-04 01:38:11 +02:00
2024-01-02 09:47:10 +08:00
2024-07-24 23:53:13 +02:00
2024-07-20 02:42:08 +02:00
2024-10-12 14:52:32 +03:00
2024-03-07 09:56:02 +02:00
2024-01-02 09:47:10 +08:00
2024-12-29 10:18:37 -05:00
2024-03-21 10:43:17 +01:00
2024-08-06 12:05:31 +02:00
2024-07-20 02:42:08 +02:00
2024-12-19 10:14:16 +01:00
2024-07-25 03:35:18 +02:00
2024-01-02 09:47:10 +08:00
2024-12-18 03:48:35 +01:00
2024-12-05 11:21:51 +01:00
2024-12-21 07:56:28 -05:00
2024-08-08 13:30:55 +03:00
2024-10-24 16:50:07 +08:00
2024-12-16 21:43:29 +01:00
2024-01-02 09:47:10 +08:00
2024-04-05 08:45:44 +03:00
2024-10-24 16:50:07 +08:00
2024-09-25 09:57:16 +03:00
2024-07-10 00:36:19 +02:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-09-08 19:17:48 +03:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-10-18 17:56:08 +02:00
2024-01-02 10:28:14 +08:00
2024-12-15 17:05:55 -05:00
2024-03-05 18:50:51 +02:00
2024-01-02 09:47:10 +08:00
2024-10-12 14:36:29 +03:00
2024-12-22 04:07:07 +01:00
2024-12-26 10:58:39 +02:00
2024-01-02 10:30:05 +08:00
2024-01-02 10:28:14 +08:00
2024-12-07 11:04:44 +02:00
2024-01-15 16:55:27 +01:00
2024-12-16 00:18:18 +01:00
2024-01-02 09:47:10 +08:00
2024-07-23 21:00:23 +03:00
2024-01-02 09:47:10 +08:00
2024-01-02 10:28:14 +08:00
2024-10-16 17:59:58 -04:00
2024-06-14 15:12:05 +08:00
2024-01-02 09:47:10 +08:00
2024-11-30 06:35:16 -05:00
2024-01-02 09:47:10 +08:00
2024-12-17 20:58:09 +02:00
2024-10-14 14:37:39 +03:00
2024-12-19 22:29:25 +01:00
2024-01-02 10:28:14 +08:00
2024-12-11 01:06:48 +01:00
2024-07-10 00:36:19 +02:00
2024-01-02 10:28:14 +08:00
2024-06-24 14:39:03 +02:00
2024-01-21 14:09:34 +01:00
2024-09-01 15:24:51 +02:00
2024-12-27 05:13:22 +01:00
2024-04-07 09:15:21 +03:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-09-01 20:05:02 +03:00
2024-09-21 19:34:16 +02:00
2024-01-02 09:47:10 +08:00
2024-12-28 08:30:31 -05:00
2024-01-02 10:28:14 +08:00
2024-01-02 10:28:14 +08:00
2024-07-20 02:42:08 +02:00
2024-01-02 09:47:10 +08:00
2024-04-09 10:26:07 -04:00
2024-11-14 10:42:07 -05:00
2024-07-10 00:36:19 +02:00
2024-04-09 10:26:07 -04:00
2024-10-04 01:38:11 +02:00
2024-01-27 08:14:31 -05:00
2024-01-02 09:47:10 +08:00
2024-02-29 16:25:26 +01:00
2024-10-24 16:50:07 +08:00
2024-10-22 06:40:20 +02:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-10-24 16:50:07 +08:00
2024-11-10 01:29:47 +01:00
2024-01-04 18:44:43 -05:00
2024-01-02 09:47:10 +08:00
2024-01-02 10:28:14 +08:00
2024-01-02 09:47:10 +08:00
2024-03-14 12:40:26 +02:00
2024-01-02 10:28:14 +08:00
2024-09-08 19:17:48 +03:00
2024-10-04 01:38:11 +02:00
2024-07-20 02:42:08 +02:00
2024-12-16 20:19:49 +02:00
2024-08-17 20:48:05 +03:00
2024-01-02 10:28:14 +08:00
2024-01-02 10:28:14 +08:00
2024-06-20 13:30:11 +02:00
2024-01-02 10:28:14 +08:00
2024-01-02 10:28:14 +08:00
2024-09-20 12:42:18 +02:00
2024-12-28 08:30:31 -05:00
2024-01-02 09:47:10 +08:00
2024-12-17 20:58:09 +02:00
2024-07-28 09:52:51 +03:00
2024-01-02 09:47:10 +08:00
2024-01-02 10:28:14 +08:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-05-04 12:06:16 -04:00
2024-01-02 09:47:10 +08:00
2024-10-24 16:50:07 +08:00
2024-01-02 09:47:10 +08:00
2024-05-11 08:29:22 +03:00
2024-01-02 09:47:10 +08:00
2024-07-20 02:42:08 +02:00
2024-10-24 16:50:07 +08:00
2024-12-17 01:40:59 +01:00
2024-10-24 16:50:07 +08:00
2024-12-04 09:40:33 +02:00
2024-12-21 07:56:08 -05:00
2024-01-02 09:47:10 +08:00
2024-01-02 10:28:14 +08:00
2024-03-29 11:39:38 +01:00
2024-01-02 09:47:10 +08:00
2024-10-19 10:33:35 +03:00
2024-07-20 02:42:08 +02:00
2024-03-11 15:23:55 +02:00
2024-10-24 16:50:07 +08:00
2024-01-02 10:28:14 +08:00
2024-12-19 11:04:04 +01:00
2024-08-04 10:47:16 +03:00
2024-01-02 09:47:10 +08:00
2024-12-26 21:02:45 +01:00
2024-12-04 20:38:41 +02:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-10-24 16:50:07 +08:00
2024-07-20 02:42:08 +02:00
2024-10-04 00:56:37 -04:00
2024-10-24 16:50:07 +08:00
2024-10-24 16:50:07 +08:00
2024-12-14 10:23:04 -08:00
2024-10-24 16:50:07 +08:00
2024-01-02 09:47:10 +08:00
2024-12-14 14:38:29 +02:00
2024-06-03 20:39:41 +08:00
2024-05-10 15:56:30 +03:00
2024-10-24 16:50:07 +08:00
2024-10-27 18:45:31 +08:00
2024-01-02 09:47:10 +08:00
2024-12-30 20:07:40 +02:00
2024-12-08 09:01:06 +01:00
2024-12-01 19:27:49 +02:00
2024-01-02 10:28:14 +08:00
2024-12-26 21:24:59 +01:00
2024-01-02 10:28:14 +08:00
2024-02-28 17:04:20 +01:00
2024-06-30 16:26:39 +08:00
2024-01-02 09:47:10 +08:00
2024-10-24 16:50:07 +08:00
2024-01-02 10:28:14 +08:00
2024-01-02 09:47:10 +08:00
2024-10-27 13:41:24 +02:00
2024-12-28 08:30:31 -05:00
2024-09-21 07:32:38 -04:00
2024-03-21 12:28:54 -04:00
2024-10-24 17:20:46 +08:00
2024-12-15 19:20:04 +01:00
2024-01-21 14:09:34 +01:00
2024-10-24 16:50:07 +08:00
2024-12-23 10:59:11 +01:00
2024-07-18 11:46:50 +02:00
2024-07-10 00:36:19 +02:00
2024-01-02 10:28:14 +08:00
2024-10-24 16:50:07 +08:00
2024-01-02 10:28:14 +08:00
2024-12-20 07:03:59 +01:00
2024-10-24 16:50:07 +08:00
2024-10-31 12:36:31 +02:00