source:
tools/build/clean_hdr.awk
@
62d62db
Last change on this file since 62d62db was c65a80b, checked in by , 7 years ago | |
---|---|
|
|
File size: 367 bytes |
Line | |
---|---|
1 | #!/usr/bin/awk -f |
2 | |
3 | BEGIN { |
4 | pattern = "^" path "[0-9A-z]*\\.(cc|h)" |
5 | complete_pattern = "^\\(" path "[0-9A-z]*\\.(cc|h)" |
6 | show = 0 |
7 | } |
8 | |
9 | $1 !~ /^(Makefile.*|Making.*|CXX)/ { |
10 | if( $1 ~ pattern ) { |
11 | show = 1 |
12 | } |
13 | |
14 | if( $1 ~ complete_pattern ) { |
15 | |
16 | } |
17 | |
18 | if( show > 0 ) |
19 | { |
20 | |
21 | } |
22 | } |
23 | |
24 | $1 ~ /^---/ { |
25 | show = 0 |
26 | } |
27 | |
28 | $1 ~ /^CXX/ { |
29 | $1 = " IWYU " |
30 | print > "/dev/stderr" |
31 | } |
Note: See TracBrowser
for help on using the repository browser.