]> git.ipfire.org Git - thirdparty/gcc.git/commit
check_GNU_style.py: Read stdin if file argument is '-'
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 May 2017 07:31:02 +0000 (07:31 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 May 2017 07:31:02 +0000 (07:31 +0000)
commit5d952fcda470b80e5b1ee71ee06fd7593b1aee22
treec01f020ebfc7f2853ae2895bca929f360c8b5748
parent80885f4fc0c15dd2c2739e9537fa4ff9409b3068
check_GNU_style.py: Read stdin if file argument is '-'

2017-05-29  Tom de Vries  <tom@codesourcery.com>

* check_GNU_style_lib.py (check_GNU_style_file): Treat file argument as
file handle.  Add and handle file_encoding argument.
* check_GNU_style.py (main): Handle '-' file argument.  Call
check_GNU_style_file with file handle as argument.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248555 138bc75d-0d04-0410-961f-82ee72b054a4
contrib/ChangeLog
contrib/check_GNU_style.py
contrib/check_GNU_style_lib.py