1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00
freebsd/usr.bin/indent/tests
Piotr Pawel Stefaniak 01c66110e1 indent(1): rewrite the integer/floating constant scanning part of lexi.c
Remove procedural code that did the scanning, which was faulty and didn't
support complex constants such as 0x1p-61. Replace it with a finite state
machine expressed as a transition table. The table was rewritten by hand
from lx's output, given parts of grammar expressed as regular expressions.

lx is Katherine Flavel's lexer generator, currently available at
https://github.com/katef/libfsm and the parts of grammar were taken from
http://quut.com/c/ANSI-C-grammar-l-2011.html and extended to support binary
integer constants which are a popular GCC extension.

Reported by:	bde
2018-07-16 05:46:50 +00:00
..
binary.0 indent(1): Support binary integer literals. 2017-05-18 17:15:58 +00:00
binary.0.stdout indent(1): don't produce unneeded space character in function declarators. 2017-07-23 14:04:45 +00:00
comments.0 indent(1): improve handling of boxed comments indentation 2018-06-03 15:28:55 +00:00
comments.0.pro indent(1): rename the profile file. 2017-07-23 15:07:52 +00:00
comments.0.stdout indent(1): improve handling of boxed comments indentation 2018-06-03 15:28:55 +00:00
cs.0 indent(1): rename -nsac/-sac ("space after cast") to -ncs/-cs 2018-06-11 05:35:57 +00:00
cs.0.pro indent(1): rename -nsac/-sac ("space after cast") to -ncs/-cs 2018-06-11 05:35:57 +00:00
cs.0.stdout indent(1): rename -nsac/-sac ("space after cast") to -ncs/-cs 2018-06-11 05:35:57 +00:00
declarations.0 indent(1): don't indent typedef declarations as object declarations 2018-06-01 09:41:15 +00:00
declarations.0.stdout indent(1): don't add unneeded space to function pointer declarations 2018-06-01 09:58:44 +00:00
elsecomment.0 indent(1): improve handling of comments and newlines between "if (...)" or 2018-06-03 14:03:20 +00:00
elsecomment.0.pro
elsecomment.0.stdout indent(1): improve handling of comments and newlines between "if (...)" or 2018-06-03 14:03:20 +00:00
f_decls.0 indent(1): don't format function declarations as variables 2018-06-03 16:42:58 +00:00
f_decls.0.stdout indent(1): don't format function declarations as variables 2018-06-03 16:42:58 +00:00
float.0 indent(1): rewrite the integer/floating constant scanning part of lexi.c 2018-07-16 05:46:50 +00:00
float.0.stdout indent(1): rewrite the integer/floating constant scanning part of lexi.c 2018-07-16 05:46:50 +00:00
functional_test.sh
label.0
label.0.pro
label.0.stdout indent(1): don't produce unneeded space character in function declarators. 2017-07-23 14:04:45 +00:00
list_head.0
list_head.0.stdout
Makefile indent(1): rename -nsac/-sac ("space after cast") to -ncs/-cs 2018-06-11 05:35:57 +00:00
Makefile.depend DIRDEPS_BUILD: Connect new directories. 2017-10-31 00:04:07 +00:00
ncs.0 indent(1): rename -nsac/-sac ("space after cast") to -ncs/-cs 2018-06-11 05:35:57 +00:00
ncs.0.pro indent(1): rename -nsac/-sac ("space after cast") to -ncs/-cs 2018-06-11 05:35:57 +00:00
ncs.0.stdout indent(1): rename -nsac/-sac ("space after cast") to -ncs/-cs 2018-06-11 05:35:57 +00:00
offsetof.0
offsetof.0.stdout indent(1): don't produce unneeded space character in function declarators. 2017-07-23 14:04:45 +00:00
parens.0 indent(1): if an identifier can be either a typedef name or as a struct 2018-06-03 19:05:20 +00:00
parens.0.pro indent(1): if an identifier can be either a typedef name or as a struct 2018-06-03 19:05:20 +00:00
parens.0.stdout indent(1): if an identifier can be either a typedef name or as a struct 2018-06-03 19:05:20 +00:00
pcs.0 indent(1): restore working -pcs 2018-06-01 19:56:41 +00:00
pcs.0.pro indent(1): restore working -pcs 2018-06-01 19:56:41 +00:00
pcs.0.stdout indent(1): restore working -pcs 2018-06-01 19:56:41 +00:00
struct.0 indent(1): disjoint parser state from lexi() 2018-06-03 16:21:15 +00:00
struct.0.stdout indent(1): disjoint parser state from lexi() 2018-06-03 16:21:15 +00:00
surplusbad.0
surplusbad.0.pro
surplusbad.0.stdout
types_from_file.0
types_from_file.0.list
types_from_file.0.pro
types_from_file.0.stdout
wchar.0
wchar.0.stdout