diff options
Diffstat (limited to 'doc/misc/cc-mode.texi')
| -rw-r--r-- | doc/misc/cc-mode.texi | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/doc/misc/cc-mode.texi b/doc/misc/cc-mode.texi index 68a16c0ed74..14981c9c58b 100644 --- a/doc/misc/cc-mode.texi +++ b/doc/misc/cc-mode.texi | |||
| @@ -4141,7 +4141,8 @@ Open brace of an enum or static array list. @ref{Brace List Symbols}. | |||
| 4141 | @item brace-list-close | 4141 | @item brace-list-close |
| 4142 | Close brace of an enum or static array list. @ref{Brace List Symbols}. | 4142 | Close brace of an enum or static array list. @ref{Brace List Symbols}. |
| 4143 | @item brace-list-intro | 4143 | @item brace-list-intro |
| 4144 | First line in an enum or static array list. @ref{Brace List Symbols}. | 4144 | First line after the opening @samp{@{} in an enum or static array |
| 4145 | list. @ref{Brace List Symbols}. | ||
| 4145 | @item brace-list-entry | 4146 | @item brace-list-entry |
| 4146 | Subsequent lines in an enum or static array list. @ref{Brace List | 4147 | Subsequent lines in an enum or static array list. @ref{Brace List |
| 4147 | Symbols}. | 4148 | Symbols}. |
| @@ -4635,11 +4636,18 @@ example: | |||
| 4635 | 4636 | ||
| 4636 | Here, you've already seen the analysis of lines 1, 2, 3, and 11. On | 4637 | Here, you've already seen the analysis of lines 1, 2, 3, and 11. On |
| 4637 | line 4, things get interesting; this line is assigned | 4638 | line 4, things get interesting; this line is assigned |
| 4638 | @code{brace-entry-open} syntactic symbol because it's a bracelist entry | 4639 | @code{brace-entry-open} syntactic symbol because it's a bracelist |
| 4639 | line that starts with an open brace. Lines 5 and 6 (and line 9) are | 4640 | entry line that starts with an open brace. Lines 5 and 6 are pretty |
| 4640 | pretty standard, and line 7 is a @code{brace-list-close} as you'd | 4641 | standard, and line 7 is a @code{brace-list-close} as you'd expect. |
| 4641 | expect. Once again, line 8 is assigned as @code{brace-entry-open} as is | 4642 | Once again, line 8 is assigned as @code{brace-entry-open} as is line |
| 4642 | line 10. | 4643 | 10. Line 9 is assigned two syntactic elements, @code{brace-list-intro} |
| 4644 | with anchor point at the @samp{@{} of line 8@footnote{This extra | ||
| 4645 | syntactic element was introduced in @ccmode{} 5.33.1 to allow extra | ||
| 4646 | flexibility in indenting the second line of such a construct. You can | ||
| 4647 | preserve the behaviour resulting from the former syntactic analysis by | ||
| 4648 | giving @code{brace-list-entry} an offset of | ||
| 4649 | @code{c-lineup-under-anchor} (@pxref{Misc Line-Up}).}, and | ||
| 4650 | @code{brace-list-entry} anchored on the @samp{1} of line 8. | ||
| 4643 | 4651 | ||
| 4644 | @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 4652 | @comment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 4645 | @node External Scope Symbols, Paren List Symbols, Brace List Symbols, Syntactic Symbols | 4653 | @node External Scope Symbols, Paren List Symbols, Brace List Symbols, Syntactic Symbols |
| @@ -6288,6 +6296,17 @@ already has; think of it as an identity function for lineups. | |||
| 6288 | 6296 | ||
| 6289 | @comment ------------------------------------------------------------ | 6297 | @comment ------------------------------------------------------------ |
| 6290 | 6298 | ||
| 6299 | @defun c-lineup-under-anchor | ||
| 6300 | |||
| 6301 | Line up a line directly underneath its anchor point. This is like | ||
| 6302 | @samp{0}, except any previously calculated offset contributions are | ||
| 6303 | disregarded. | ||
| 6304 | |||
| 6305 | @workswith Any syntactic symbol which has an anchor point. | ||
| 6306 | @end defun | ||
| 6307 | |||
| 6308 | @comment ------------------------------------------------------------ | ||
| 6309 | |||
| 6291 | @defun c-lineup-cpp-define | 6310 | @defun c-lineup-cpp-define |
| 6292 | @findex lineup-cpp-define (c-) | 6311 | @findex lineup-cpp-define (c-) |
| 6293 | Line up macro continuation lines according to the indentation of the | 6312 | Line up macro continuation lines according to the indentation of the |