| #
9035bfff
|
| 29-Dec-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
indent: make the URL of the manpage two characters longer so that the test is successful
|
| #
ffd76b1f
|
| 28-Dec-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
use long manpage URL (broken in last commit)
Reported by: pstef
|
| #
271887ec
|
| 28-Dec-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
update manpage URL
|
| #
2a63c3be
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c comment pattern
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
|
| #
9035bfff
|
| 29-Dec-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
indent: make the URL of the manpage two characters longer so that the test is successful
|
| #
ffd76b1f
|
| 28-Dec-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
use long manpage URL (broken in last commit)
Reported by: pstef
|
| #
271887ec
|
| 28-Dec-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
update manpage URL
|
| #
2a63c3be
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c comment pattern
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
|
| #
3c51c3cf
|
| 03-Jun-2018 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
indent(1): improve handling of boxed comments indentation
The trick is to copy everything from the start of the line into the buffer that stores newlines and comments until indent finds a brace or a
indent(1): improve handling of boxed comments indentation
The trick is to copy everything from the start of the line into the buffer that stores newlines and comments until indent finds a brace or an else. pr_comment() will use that information to calculate the original indentation of the boxed comment.
This requires storing two pieces of information: the real start of the buffer (sc_buf) and the start of the comment (save_com).
show more ...
|
| #
0275f9db
|
| 11-Aug-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r321383 through r322397.
|
| #
531c2d7a
|
| 24-Jul-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r320180
|
| #
3e2c1447
|
| 23-Jul-2017 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
indent(1): better alignment of comments on code.
If aligning the beginning of a comment to -cn would mean no space between code and the comment, align it to the next tab stop.
|
| #
1a36faad
|
| 11-Feb-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r313301 through r313643.
|
| #
61fd3be0
|
| 10-Feb-2017 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
indent(1): add regression test cases
These examples show expected behavior of indent(1). They are meant to be used together with a regression test mechanism, either Kyua, a Makefile or perhaps somet
indent(1): add regression test cases
These examples show expected behavior of indent(1). They are meant to be used together with a regression test mechanism, either Kyua, a Makefile or perhaps something else. The mechanism should in essence do this: indent -P${test}.pro < ${test}.0 > ${test}.0.run and compare ${test}.0.stdout to ${test}.0.run. If the files differ or the exit status isn't 0, the test failed.
* ${test}.pro is an indent(1) profile: a list of options passed through a file. The program doesn't complain if the file doesn't exist. * ${test}.0 is a C source file which acts as input for indent(1). It doesn't have to have any particular formatting, since it's the output that matters. * ${test}.0.stdout contains expected output. It doesn't have to be formatted in Kernel Normal Form as the point of the tests is to check for regressions in the program and not to check that it always produces KNF.
Reviewed by: ngie Approved by: pfg (mentor) Differential Revision: https://reviews.freebsd.org/D9007
show more ...
|
| #
3c51c3cf
|
| 03-Jun-2018 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
indent(1): improve handling of boxed comments indentation
The trick is to copy everything from the start of the line into the buffer that stores newlines and comments until indent finds a brace or a
indent(1): improve handling of boxed comments indentation
The trick is to copy everything from the start of the line into the buffer that stores newlines and comments until indent finds a brace or an else. pr_comment() will use that information to calculate the original indentation of the boxed comment.
This requires storing two pieces of information: the real start of the buffer (sc_buf) and the start of the comment (save_com).
show more ...
|
| #
0275f9db
|
| 11-Aug-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r321383 through r322397.
|
| #
531c2d7a
|
| 24-Jul-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r320180
|
| #
3e2c1447
|
| 23-Jul-2017 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
indent(1): better alignment of comments on code.
If aligning the beginning of a comment to -cn would mean no space between code and the comment, align it to the next tab stop.
|
| #
1a36faad
|
| 11-Feb-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r313301 through r313643.
|
| #
61fd3be0
|
| 10-Feb-2017 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
indent(1): add regression test cases
These examples show expected behavior of indent(1). They are meant to be used together with a regression test mechanism, either Kyua, a Makefile or perhaps somet
indent(1): add regression test cases
These examples show expected behavior of indent(1). They are meant to be used together with a regression test mechanism, either Kyua, a Makefile or perhaps something else. The mechanism should in essence do this: indent -P${test}.pro < ${test}.0 > ${test}.0.run and compare ${test}.0.stdout to ${test}.0.run. If the files differ or the exit status isn't 0, the test failed.
* ${test}.pro is an indent(1) profile: a list of options passed through a file. The program doesn't complain if the file doesn't exist. * ${test}.0 is a C source file which acts as input for indent(1). It doesn't have to have any particular formatting, since it's the output that matters. * ${test}.0.stdout contains expected output. It doesn't have to be formatted in Kernel Normal Form as the point of the tests is to check for regressions in the program and not to check that it always produces KNF.
Reviewed by: ngie Approved by: pfg (mentor) Differential Revision: https://reviews.freebsd.org/D9007
show more ...
|
| #
9035bfff
|
| 29-Dec-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
indent: make the URL of the manpage two characters longer so that the test is successful
|
| #
ffd76b1f
|
| 28-Dec-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
use long manpage URL (broken in last commit)
Reported by: pstef
|
| #
271887ec
|
| 28-Dec-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
update manpage URL
|
| #
2a63c3be
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c comment pattern
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
|
| #
3c51c3cf
|
| 03-Jun-2018 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
indent(1): improve handling of boxed comments indentation
The trick is to copy everything from the start of the line into the buffer that stores newlines and comments until indent finds a brace or a
indent(1): improve handling of boxed comments indentation
The trick is to copy everything from the start of the line into the buffer that stores newlines and comments until indent finds a brace or an else. pr_comment() will use that information to calculate the original indentation of the boxed comment.
This requires storing two pieces of information: the real start of the buffer (sc_buf) and the start of the comment (save_com).
show more ...
|