From be4aac302b0cbeab6da9e3192318aad7379a6428 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Fri, 29 Aug 2014 00:32:07 +0200 Subject: patcheck: check for pointer arrays that are not const. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Reimar Döffinger --- tools/patcheck | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/patcheck b/tools/patcheck index 3342c6a429..cbdbf8d34a 100755 --- a/tools/patcheck +++ b/tools/patcheck @@ -42,6 +42,7 @@ hiegrep2(){ cat $TMP } +hiegrep 'static[^(]*\*[a-zA-Z_]*\[' 'pointer array is not const' $* hiegrep '[[:space:]]$' 'trailing whitespace' $* hiegrep "$(echo x | tr 'x' '\t')" 'tabs' $* #hiegrep ':\+$' 'Empty lines' $* -- cgit v1.2.3