Dr. David von Oheimb
13a574d8bb
check-format.pl: Allow nested indentation of labels (not only at line pos 1)
...
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13019 )
2020-09-30 20:51:23 +02:00
Dr. David von Oheimb
8e655da022
check-format.pl: Extend exceptions for no SPC after trailing ';' in 'for (...;)'
...
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13019 )
2020-09-30 20:51:23 +02:00
Dr. David von Oheimb
df4ec39203
check-format.pl: Document how to run positive and negative self-tests
...
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13019 )
2020-09-30 20:51:23 +02:00
Dr. David von Oheimb
174f4a4d6a
check-format.pl: Report empty lines only if -s (--sloppy-spc) is not used
...
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12270 )
2020-07-20 11:17:34 +02:00
Dr. David von Oheimb
dc18781550
check-format.pl: Add check for essentially empty line at beginning of file
...
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12270 )
2020-07-20 11:17:34 +02:00
Dr. David von Oheimb
43b2e9e008
check-format.pl: Add check for multiples essentially empty lines in a row
...
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12270 )
2020-07-20 11:17:34 +02:00
Dr. David von Oheimb
a77571c34f
check-format.pl: Allow comment start '/*' after opening '(','[','{'
...
On this occasion fix uses of the word 'nor'.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12270 )
2020-07-20 11:17:34 +02:00
Dr. David von Oheimb
90a7c90500
fix false positive of check-format.pl regarding '#if' on preceding line; extend negative tests
...
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/11285 )
2020-03-18 13:43:36 +01:00
Dr. David von Oheimb
aed723f1e4
make util/check-format.pl script executable
...
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/11285 )
2020-03-18 13:43:36 +01:00
Dr. David von Oheimb
38e497818e
fix false positive of check-format.pl reporting '{1 stmt}' after multi-line 'if(expr)'
...
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/11285 )
2020-03-18 13:43:36 +01:00
Dr. David von Oheimb
99a16e0459
Renew and extend the tool for checking adherence to C coding style rules
...
aims at checking most of https://www.openssl.org/policies/codingstyle.html
and various requirements not yet explicitly stated there - see also #10725
add util/check-format.pl and its self-tests in
util/check-format-test-{positives,negatives}.c
remove util/openssl-format-source
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/10363 )
2020-03-09 11:03:21 +01:00