NetBSD/tests/usr.bin/indent
kamil d845d12b1a Upgrade indent(1)
Merge all the changes from the recent FreeBSD HEAD snapshot
into our local copy.

FreeBSD actively maintains this program in their sources and their
repository contains over 100 commits with changes.

Keep the delta between the FreeBSD and NetBSD versions to absolute
minimum, mostly RCS Id and compatiblity fixes.

Major chages in this import:

 - Added an option -ldi<N> to control indentation of local variable names.
 - Added option -P for loading user-provided files as profiles
 - Added -tsn for setting tabsize
 - Rename -nsac/-sac ("space after cast") to -ncs/-cs
 - Added option -fbs Enables (disables) splitting the function declaration and opening brace across two lines.
 - Respect SIMPLE_BACKUP_SUFFIX environment variable in indent(1)
 - Group global option variables into an options structure
 - Use bsearch() for looking up type keywords.
 - Don't produce unneeded space character in function declarators
 - Don't unnecessarily add a blank before a comment ends.
 - Don't ignore newlines after comments that follow braces.

Merge the FreeBSD intend(1) tests with our ATF framework.
All tests pass.

Upgrade prepared by Manikishan Ghantasala.
Final polishing by myself.

Part II, checkin new files.
2019-04-04 15:27:35 +00:00
..
binary.0
binary.0.stdout
comments.0
comments.0.pro
comments.0.stdout
cs.0
cs.0.pro
cs.0.stdout
declarations.0
declarations.0.stdout
elsecomment.0
elsecomment.0.pro
elsecomment.0.stdout
f_decls.0
f_decls.0.stdout
float.0
float.0.stdout
label.0
label.0.pro
label.0.stdout
list_head.0
list_head.0.stdout
Makefile
ncs.0
ncs.0.pro
ncs.0.stdout
offsetof.0
offsetof.0.stdout
parens.0
parens.0.pro
parens.0.stdout
pcs.0
pcs.0.pro
pcs.0.stdout
struct.0
struct.0.stdout
surplusbad.0
surplusbad.0.pro
surplusbad.0.stdout
t_indent.sh
types_from_file.0
types_from_file.0.list
types_from_file.0.pro
types_from_file.0.stdout
wchar.0
wchar.0.stdout