Commit Graph

23 Commits

Author SHA1 Message Date
Jakub Jelinek
a945c346f5 Update copyright years. 2024-01-03 12:19:35 +01:00
Jakub Jelinek
83ffe9cde7 Update copyright years. 2023-01-16 11:52:17 +01:00
Kyrylo Tkachov
e77cf8c6d6 [check_GNU_style.sh] More aggressively ignore dg-xxx directives
* check_GNU_style.sh (remove_testsuite): New function.
	Use it to remove testsuite from the diff.

From-SVN: r241471
2016-10-24 11:23:36 +00:00
Alan Hayward
22d222d240 check_GNU_style.sh: Fix paste args for BSD
2016-06-10  Alan Hayward  <alan.hayward@arm.com>

	* check_GNU_style.sh: Fix paste args for BSD

From-SVN: r237289
2016-06-10 08:53:20 +00:00
Martin Sebor
2ecc0c837b check_GNU_style.sh: Avoid false posivies in trailing operator checks.
From-SVN: r234965
2016-04-13 16:05:30 -06:00
Martin Sebor
55a82b661e Add style checks to check_GNU_style.sh.
gcc/contrib/ChangeLog:
2016-03-07  Martin Sebor  <msebor@redhat.com>

	* check_GNU_style.sh (color): New global variable.
	Add checks for trailing operators and spaces before left brackets.
	Tightened up a check for a trailing left curly brace.
	(g, ag, vg): Use color.
	(col): Don't complain about excessively long lines with DejaGnu
	directives.

From-SVN: r234035
2016-03-07 10:01:44 -07:00
Tom de Vries
7392b0906f check_GNU_style.sh: Fix quoting in cat_with_prefix
2015-07-15  Tom de Vries  <tom@codesourcery.com>

	* check_GNU_style.sh (cat_with_prefix): Fix quoting.

From-SVN: r225837
2015-07-15 15:41:21 +00:00
Tom de Vries
323eb6e3cf check_GNU_style.sh: Don't do 80 char check line by line
2015-05-18  Tom de Vries  <tom@codesourcery.com>

	* check_GNU_style.sh: Add temp files tmp2 and tmp3.
	(cat_with_prefix): New function, using global variable prefix.
	(col): Make prefix a global variable. Rewrite to process file at a time
	rather than line at a time.  Print part longer than 80 chars in red.

From-SVN: r223297
2015-05-18 15:44:55 +00:00
Tom de Vries
ad7f0dfea3 check_GNU_style.sh: Don't cat empty file
2015-05-18  Tom de Vries  <tom@codesourcery.com>

	* check_GNU_style.sh (g, ag, vg): Don't cat empty file.

From-SVN: r223284
2015-05-18 07:07:44 +00:00
Tom de Vries
847b6e1511 check_GNU_style.sh: Declare local vars with local
2015-05-18  Tom de Vries  <tom@codesourcery.com>

	* check_GNU_style.sh (g, ag, vg, col): Declare local vars with local.

From-SVN: r223283
2015-05-18 07:07:36 +00:00
Tom de Vries
7e425ad686 check_GNU_style.sh: Improve readability function calls
2015-05-18  Tom de Vries  <tom@codesourcery.com>

	* check_GNU_style.sh: Improve readability function calls.

From-SVN: r223282
2015-05-18 07:07:27 +00:00
Tom de Vries
cc1e0483ae check_GNU_style.sh: Fix tab size in 80 characters check
2015-05-12  Tom de Vries  <tom@codesourcery.com>

	* check_GNU_style.sh (col): Fix tab size.

From-SVN: r223088
2015-05-12 16:23:38 +00:00
Tom de Vries
a22e33d04a check_GNU_style.sh: Put stdin into temp file
2015-05-12  Tom de Vries  <tom@codesourcery.com>

	* check_GNU_style.sh: Put stdin into a temp file.

From-SVN: r223087
2015-05-12 16:23:29 +00:00
Tom de Vries
7f167be6ac check_GNU_style.sh: Read either from stdin, or from files
2015-05-12  Tom de Vries  <tom@codesourcery.com>

	* check_GNU_style.sh: Read either from stdin, or from files.

From-SVN: r223086
2015-05-12 16:23:19 +00:00
Tom de Vries
0648b80726 check_GNU_style.sh: Check file presence
2015-05-12  Tom de Vries  <tom@codesourcery.com>

	* check_GNU_style.sh: Check if files exists.

From-SVN: r223085
2015-05-12 16:23:11 +00:00
Tom de Vries
4171ffe90d check_GNU_style.sh: Don't use filename prefix for one patch
2015-05-12  Tom de Vries  <tom@codesourcery.com>

	* check_GNU_style.sh: Don't use a filename prefix if we're only
	processing one patch file.

From-SVN: r223084
2015-05-12 16:23:03 +00:00
Yury Gribov
6e7bdfacf2 check_GNU_style.sh: Support patches coming from stdin.
2015-01-12  Yury Gribov  <y.gribov@samsung.com>

	* check_GNU_style.sh: Support patches coming from stdin.
	Check that spaces are converted to tabs.
	Make double-space-after-dot check more precice.

From-SVN: r219447
2015-01-12 08:40:16 +00:00
Mantas Mikaitis
d0d7c35782 check_GNU_style.sh "80 characters exceeded" error fix
2014-12-10  Mantas Mikaitis  <mantas.mikaitis@arm.com>

	* contrib/check_GNU_style.sh (col): Got rid of cut operation
	from the pipe chain and instead added cut inside awk command.

From-SVN: r218575
2014-12-10 11:46:08 +00:00
Thomas Preud'homme
83f41b2484 check_GNU_style.sh: Warn for incorrect number of spaces in function call only if 0 or 2+ spaces found.
2014-12-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    contrib/
    * check_GNU_style.sh: Warn for incorrect number of spaces in function
    call only if 0 or 2+ spaces found.

From-SVN: r218382
2014-12-04 16:39:47 +00:00
Jakub Jelinek
90d04a445c Update Copyright years for files modified in 2011 and/or 2012.
From-SVN: r194903
2013-01-04 13:49:55 +01:00
Christophe Lyon
c8ae7abfab check_GNU_style.sh: Remove temporay file upon exit.
2012-10-02   Christophe Lyon  <christophe.lyon@linaro.org>

       * check_GNU_style.sh: Remove temporay file upon exit.

From-SVN: r191954
2012-10-02 09:41:28 +02:00
Sebastian Pop
8cab7c1398 Do not print warning messages when there are no occurences.
2010-07-02  Sebastian Pop  <sebastian.pop@amd.com>

	* check_GNU_style.sh: Do not print warning messages when there are
	no occurences.

From-SVN: r164378
2010-09-17 19:09:47 +00:00
Sebastian Pop
f3e3b4762b Script to check patches violating the GNU style.
2010-07-02  Sebastian Pop  <sebastian.pop@amd.com>

	* check_GNU_style.sh: New.

From-SVN: r161729
2010-07-02 16:34:55 +00:00