bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 00/11] Bugfixes and a few new options


From: Tim Hentenaar
Subject: [PATCH 00/11] Bugfixes and a few new options
Date: Mon, 15 Jun 2015 21:52:51 +0200

Howdy y'all,

I'd like to submit the following patches for your consideration. Most of
these patches add a few new options (such as -sa for aligning with spaces
when indenting with tabs) and fix some existing bugs, namely:

- GNU bug #42357
- Build-time texi2html issue (which I later saw a fix for in the archives.)
- Build-time gnu_inline attribute issue
- Broken formatting of struct initializers
  (also reported here: http://superuser.com/questions/896131)

and some that I discovered during my dive into indent. I added regression
tests for these bugs, and for the new features I've added. I also added a
few options to the K&R style, after double-checking my copy of their 2nd
Ed. book to make indent's -kr option even more like the style used in the
book.

Below is a summary of this patchset.

Enjoy!

Tim



Tim Hentenaar (11):
  lexi.c: Fix conditionals around the GNU inline attribute
  Fix html doc generation
  Fix regression introduced in hg revision 25c27d429590
  parse: Write out token names when dumping the parser's stack
  Add an option to allow single-line conditionals
  Automatically include 'size_t', 'wchar_t' and 'ptrdiff_t' as a rw_decl
    tokens, since they're guaranteed to be available in ANSI C.
  Add an option to use spaces for aligment when using tabs
  Adjust -npcs so that if set, no space will be added between a function
    pointer's name and its argument list.
  Fix handling of block comments after braces
  Add -par to K&R style
  Fix formatting of struct initializer lists, and add -sar

 AUTHORS                                            |   1 +
 ChangeLog                                          |  25 +++
 doc/Makefile.am                                    |   6 +-
 doc/indent.texi                                    | 202 ++++++++++++++++++++-
 regression/TEST                                    |  12 +-
 regression/input/align-with-spaces.c               |   7 +
 regression/input/block-comments.c                  |  16 ++
 .../input/preserve-newline-after-right-brace.c     |  17 ++
 regression/input/single-line-conditionals.c        |  10 +
 regression/standard/align-with-spaces.c            |   9 +
 regression/standard/block-comments.c               |  17 ++
 regression/standard/bug-hp.c                       |   2 +-
 regression/standard/no-space-after-fp-name.c       |  23 +++
 .../standard/preserve-newline-after-right-brace.c  |  18 ++
 regression/standard/single-line-conditionals.c     |  11 ++
 src/args.c                                         |  19 +-
 src/comments.c                                     |  11 +-
 src/handletoken.c                                  |  45 ++++-
 src/indent.c                                       | 114 +++++++-----
 src/indent.h                                       |   8 +-
 src/lexi.c                                         |   6 +
 src/output.c                                       |  29 ++-
 src/parse.c                                        |   8 +-
 23 files changed, 537 insertions(+), 79 deletions(-)
 create mode 100644 regression/input/align-with-spaces.c
 create mode 100644 regression/input/block-comments.c
 create mode 100644 regression/input/preserve-newline-after-right-brace.c
 create mode 100644 regression/input/single-line-conditionals.c
 create mode 100644 regression/standard/align-with-spaces.c
 create mode 100644 regression/standard/block-comments.c
 create mode 100644 regression/standard/no-space-after-fp-name.c
 create mode 100644 regression/standard/preserve-newline-after-right-brace.c
 create mode 100644 regression/standard/single-line-conditionals.c

-- 
2.3.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]