tools/stlfilter
author Scott Ehlert <ds@alliedmods.net>
Thu Sep 26 16:01:02 2013 -0500 (2013-09-26)
changeset 281 f570fd7c68ca
parent 0 d15304fcb7a7
permissions -rwxr-xr-x
Bumped version to 1.21.1-am.
darope@0
     1
#!/bin/ksh
darope@0
     2
# vi: set ts=4 sw=4 :
darope@0
     3
# vim: set ft=awk :
darope@0
     4
darope@0
     5
nawk '
darope@0
     6
	BEGIN {ret=0}
darope@0
     7
	$0 ~ "iostream.h:.*[io]stream" {next}
darope@0
     8
	$0 ~ "iostream.h:.*operator=" {next}
darope@0
     9
	$0 ~ "stl_iterator.h:.*::operator" {next}
darope@0
    10
	$0 ~ "stl_bvector.h:.*Bit_(reference|iterator|const_iterator)" {next}
darope@0
    11
	$0 ~ "stl_bvector.h:.*operator=" {next}
darope@0
    12
	$0 ~ "stl_vector.h:.*_Vector" {next}
darope@0
    13
	$0 ~ "instantiated from .(_Vector|vector<)" {next}
darope@0
    14
	$0 ~ "instantiation of .vector<" {next}
darope@0
    15
	$0 ~ "^(In file included| *) from /usr/lib/gcc-lib/i386-linux/.*/include/g\+\+-3/(stl_iterator.h|stl_algobase.h|vector|stl_bvector.h|stl_vector.h):" {next}
darope@0
    16
	$0 ~ "/usr/lib/gcc-lib/i386-linux/.*/include/g\+\+-3/.*: At top level" {next}
darope@0
    17
	$0 ~ "   *instantiated from here$" {next}
darope@0
    18
	$0 ~ "                 from.*:$" {next}
darope@0
    19
	$0 ~ "cc1plus: warnings being treated as errors" {print; next}
darope@0
    20
	$0 ~ "warning:" {ret=1}
darope@0
    21
	$0 ~ "error" {ret=1}
darope@0
    22
	{print}
darope@0
    23
	END {exit(ret)}
darope@0
    24
'
darope@0
    25
ret=$?
darope@0
    26
echo "stlfilter exiting with $ret"
darope@0
    27
exit $ret