scripts/clean-includes: added duplicate #include check
authorAnand J <anand.indukala@gmail.com>
Fri, 21 Oct 2016 06:57:06 +0000 (12:27 +0530)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 28 Oct 2016 15:17:23 +0000 (18:17 +0300)
commitd66253e46ae2b9c36a9dd90b2b74c0dfa5804b22
treed675ec9cb85ee1892a71cc2801f906c9c6dbeb60
parentbdbcb547cf96fc1794b31003cbae1c7a37c4d205
scripts/clean-includes: added duplicate #include check

Enhance the clean-includes script to optionally check for duplicate #include
entries.

Script might output false positive entries as well. Such entries should
not be removed. So if it finds any duplicate entries script will
terminate with an exit status 1. Then each and every file should be
checked manually and corrected if necessary.

In order to enable the check use --check-dup-head option with
scripts/clean-includes.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Anand J <anand.indukala@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
scripts/clean-includes