#
7d0ce7aa |
| 23-Aug-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r304537 through r304699.
|
#
f3c23ec3 |
| 23-Aug-2016 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
indent(1): Fix memory leaks pointed out by clang-analyzer.
Shift the responsibility of allocating memory for the string duplicate from the caller (set_option, add_typedefs_from_file) to the callee (
indent(1): Fix memory leaks pointed out by clang-analyzer.
Shift the responsibility of allocating memory for the string duplicate from the caller (set_option, add_typedefs_from_file) to the callee (add_typename) as it has more knowledge about when the duplication actually needs to occur.
Taken from: Piotr Stefaniak
show more ...
|
#
27067774 |
| 16-Aug-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r303250 through r304235.
|
#
a6bcfda4 |
| 04-Aug-2016 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
indent(1): Use bsearch() for looking up type keywords.
Reference: https://github.com/pstef/freebsd_indent/commit/f3b8e6e57fd47364b2360b44011a2fad5d11adc7
Submitted by: Piotr Stefaniak Differential
indent(1): Use bsearch() for looking up type keywords.
Reference: https://github.com/pstef/freebsd_indent/commit/f3b8e6e57fd47364b2360b44011a2fad5d11adc7
Submitted by: Piotr Stefaniak Differential Revision: https://reviews.freebsd.org/D6966
show more ...
|
#
771aff0a |
| 04-Aug-2016 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
indent(1): add new -sac and -U options.
Add -sac (space after cast) and -nsac options. These control whether space character is put after a cast operator or not. Default is -nsac.
Add -U option for
indent(1): add new -sac and -U options.
Add -sac (space after cast) and -nsac options. These control whether space character is put after a cast operator or not. Default is -nsac.
Add -U option for providing a file containing list of types. This is needed for properly deciding which asterisks denote unary operation and which denote binary.
These come from PostgreSQL.
Reference: https://github.com/pstef/freebsd_indent/commit/84b00e3d46dfd6d955b2f481a1f3b275de9ad6d1 https://github.com/pstef/freebsd_indent/commit/49c52cf383fa2a246a1a22c6640a5a21b0f1fd90
Differential Revision: https://reviews.freebsd.org/D6966 (Partial) Submitted by: Piotr Stefaniak
show more ...
|
#
70a3049e |
| 01-Aug-2016 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
indent(1): Use a dash in the license headers.
Use of the canonical dash avoids indent(1) from reformatting the license headers.
|
#
e725fe4b |
| 31-Jul-2016 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
indent(1): Rearrange option parsing code to squelch clang's static analyzer.
clang-analyzer complained that eqin() sets file-scoped pointer param_start to point into char buffer defined in scan_prof
indent(1): Rearrange option parsing code to squelch clang's static analyzer.
clang-analyzer complained that eqin() sets file-scoped pointer param_start to point into char buffer defined in scan_profile(), and once scan_profile() exits, param_start is a "dangling reference". param_start was never used afterwards, but it's cleaner to move it to set_option() which is the only branch where param_start is needed.
Reference: https://github.com/pstef/freebsd_indent/commit/ab0e44e5da3ff0fa4b62e451e4bbc3ea1ec7f365
Differential Revision: https://reviews.freebsd.org/D6966 (Partial) Submitted by: Piotr Stefaniak
show more ...
|
#
c917a54b |
| 29-Jul-2016 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
indent(1): Use NULL instead of zero for pointers.
|
Revision tags: release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0 |
|
#
a4bf5fb9 |
| 28-Apr-2010 |
Kirk McKusick <mckusick@FreeBSD.org> |
Update to current version of head.
|
#
ce749f10 |
| 12-Apr-2010 |
Andriy Gapon <avg@FreeBSD.org> |
MFC r205989: indent(1): new option, -ta, to treat all *_t identifiers as types
|
#
c58c7416 |
| 31-Mar-2010 |
Andriy Gapon <avg@FreeBSD.org> |
indent(1): add a new option, -ta, to treat all *_t identifiers as types
Submitted by: Hans Petter Selasky Discussed with: bde MFC after: 10 days
|
Revision tags: release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0 |
|
#
c4c326cf |
| 19-Sep-2004 |
David Schultz <das@FreeBSD.org> |
Fix a buffer overflow by using strncpy() instead of strcpy(). Also, use strdup() instead of malloc()/strcpy().
PR: 64164
|
#
e3625e9c |
| 27-Jun-2004 |
Jens Schweikhardt <schweikh@FreeBSD.org> |
Fix problems with non-8 space tabs. New options for function declarations with the opening brace on the same line as the declaration of arguments all spaces and no tabs (a feature which exists in GNU
Fix problems with non-8 space tabs. New options for function declarations with the opening brace on the same line as the declaration of arguments all spaces and no tabs (a feature which exists in GNU's indent). Man page update to follow RSN.
PR: bin/67983 Submitted by: Chip Norkus <wd@teleri.net> Style guidance and bug for bug compatibility by: bde MFC after: 2 weeks
show more ...
|
Revision tags: release/4.10.0_cvs, release/4.10.0 |
|
#
efc4d24d |
| 21-Mar-2004 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Support C-style comments in profile.
|
Revision tags: release/5.2.1_cvs, release/5.2.1 |
|
#
88ce0e7f |
| 09-Feb-2004 |
Bruce Evans <bde@FreeBSD.org> |
Added an option -ldi<N> to control indentation of local variable names. The default is to be backwards compatible and non-KNF (use the same indentation for locals as for globals; -ldi0 gives KNF inde
Added an option -ldi<N> to control indentation of local variable names. The default is to be backwards compatible and non-KNF (use the same indentation for locals as for globals; -ldi0 gives KNF indentation for locals (none)). The indentation for globals also applies to struct member names in local declatations. The indentation of variable names in multi-line declarations is broken in various ways and this commit gives some new variations.
indent.1: Also clarified the description of -di<N>.
show more ...
|
Revision tags: release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0 |
|
#
d0054952 |
| 15-Jun-2003 |
Philippe Charnier <charnier@FreeBSD.org> |
err() on allocation failure. WARNS=9 compliant use #if 0, #ifndef lint, #endif /* not lint */, #endif ordering when a message is provided, use errx() instead of err().
|
Revision tags: release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
e026a48c |
| 30-Jun-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
Consistently use FBSDID
|
#
90af6a72 |
| 24-Jun-2002 |
Juli Mallett <jmallett@FreeBSD.org> |
Remove deprecated register qualifier.
|
#
8c7e7698 |
| 30-Mar-2002 |
David Malone <dwmalone@FreeBSD.org> |
1) Const enough things to avoid warnings. 2) Cast ifdef_level to a size_t before comparing it to a ratio of size_ts. Ifdef_level should always be positive. 3) Complete prototype for chfont. 4) Cas
1) Const enough things to avoid warnings. 2) Cast ifdef_level to a size_t before comparing it to a ratio of size_ts. Ifdef_level should always be positive. 3) Complete prototype for chfont. 4) Cast some ptrdiff_ts to ints before using as a field width. 5) Avoid shadowing a local variable p with another local variable p.
show more ...
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
7916863d |
| 28-Oct-2001 |
Jens Schweikhardt <schweikh@FreeBSD.org> |
Make this compile cleanly when warnings are enabled: - ANSIfy function declarations - braces around initializers structs within structs - add parens in complicated expressions - disambiguate dang
Make this compile cleanly when warnings are enabled: - ANSIfy function declarations - braces around initializers structs within structs - add parens in complicated expressions - disambiguate dangling elses - no more implicit int - make functions static where possible - use prototypes - don't use varargs hack for diag()
Requested by: joerg MFC after: 2 weeks
show more ...
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
175f26d6 |
| 25-Dec-2000 |
David E. O'Brien <obrien@FreeBSD.org> |
Don't abuse the SCCS `@(#)' for RCS.
Requested by: bde
|
#
9e50dd77 |
| 09-Dec-2000 |
David E. O'Brien <obrien@FreeBSD.org> |
Add or fix FreeBSD IDs.
|
#
a5e1cac0 |
| 09-Dec-2000 |
David E. O'Brien <obrien@FreeBSD.org> |
"Implement -[n]fcb (formatting of block comments) and attempt to implement no-space=after-sizeof (not optional) and no-space-after 'struct foo *' (not optional). Without these, indent unKNFizes even
"Implement -[n]fcb (formatting of block comments) and attempt to implement no-space=after-sizeof (not optional) and no-space-after 'struct foo *' (not optional). Without these, indent unKNFizes even more perfectly KNF code."
Submitted by: bde
show more ...
|
Revision tags: release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs |
|
#
c3aac50f |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7, release/2.2.6, release/2.2.5_cvs |
|
#
958d7c9f |
| 15-Jul-1997 |
Philippe Charnier <charnier@FreeBSD.org> |
Use err(3) instead of local redefinition. Add usage().
|