source: tools/build/clean_hdrs @ 41870a5

ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change on this file since 41870a5 was c65a80b, checked in by Thierry Delisle <tdelisle@…>, 7 years ago

Added tools used for cleaning headers and timing builds

  • Property mode set to 100755
File size: 804 bytes
RevLine 
[c65a80b]1#!/bin/bash
2#                              -*- Mode: SH -*-
3#
4# Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
5#
6# The contents of this file are covered under the licence agreement in the
7# file "LICENCE" distributed with Cforall.
8#
9# clean_hdrs --
10#
11# Author           : Thierry Delisle
12# Created On       : Tue Jul 11 16:26:46 2017
13# Last Modified By :
14# Last Modified On :
15# Update Count     : 0
16#
17
18set -x
19if [ -z "$IWYU_HOME" ]; then
20    echo "Need to set IWYU_HOME"
21    exit 1
22fi
23DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
24
25cd src
26rm -f result.log
27make CXX="${IWYU_HOME}/build/include-what-you-use 2>&1" -ks 2> /dev/null | awk -f ${DIR}/clean_hdr.awk > result.log -v path=$@
28python ${IWYU_HOME}/src/fix_includes.py --nosafe_headers --comments --blank_lines < result.log
Note: See TracBrowser for help on using the repository browser.