Files
emacs/doc/misc
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-07-21 17:35:13 +02:00
2024-07-21 17:35:13 +02:00
2024-12-28 08:30:31 -05:00
2024-07-21 17:35:13 +02:00
2024-07-21 17:35:13 +02:00
2024-01-02 09:47:10 +08:00
2024-12-28 08:30:31 -05:00
2024-10-27 07:49:32 +01:00
2024-07-21 17:35:13 +02:00
2024-08-15 11:30:48 +03:00
2024-12-11 11:56:45 -08:00
2024-07-21 17:35:13 +02:00
2024-07-21 17:35:13 +02:00
2024-12-08 14:52:25 +01:00
2024-07-21 17:35:13 +02:00
2024-07-21 17:35:13 +02:00
2024-01-02 09:47:10 +08:00
2024-07-21 17:35:13 +02:00
2024-01-02 09:47:10 +08:00
2024-07-21 17:35:13 +02:00
2024-01-02 10:28:14 +08:00
2024-11-21 10:06:19 +01:00
2024-07-21 17:35:13 +02:00
2024-07-21 17:35:13 +02:00
2024-01-02 10:28:14 +08:00
2024-01-02 09:47:10 +08:00
2024-09-02 21:02:09 +02:00
2024-07-21 17:35:13 +02:00
2024-01-02 09:47:10 +08:00
2024-07-21 17:35:13 +02:00
2024-07-21 17:35:13 +02:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-07-21 17:35:13 +02:00
2024-01-02 09:47:10 +08:00
2024-07-18 11:46:50 +02:00
2024-07-21 17:35:13 +02:00
2024-01-02 09:47:10 +08:00
2024-01-02 09:47:10 +08:00
2024-07-21 17:35:13 +02:00
2024-01-02 09:47:10 +08:00
2024-07-21 17:35:13 +02:00
2024-12-28 08:30:31 -05:00
2024-01-02 10:28:14 +08:00
2024-07-21 17:35:13 +02:00
2024-07-21 17:35:13 +02:00
2024-11-09 12:14:39 +02:00
2024-07-21 17:35:13 +02:00
2024-01-02 09:47:10 +08:00