| OLD | NEW |
| (Empty) |
| 1 #!/bin/bash | |
| 2 # | |
| 3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 4 # Use of this source code is governed by a BSD-style license that can be | |
| 5 # found in the LICENSE file. | |
| 6 # | |
| 7 # Strip out any parameters that will make clang do anything other than syntax | |
| 8 # checking. | |
| 9 TARGETOBJ=`echo $@ | sed -e 's/.*-o \(.*\.o\).*/\1/;'` | |
| 10 | |
| 11 ADJUSTED=`echo "$@" | sed -e 's/ -c / /g;' |\ | |
| 12 sed -e 's/ -O0 / /g;' |\ | |
| 13 sed -e 's/ -g / /g;' |\ | |
| 14 sed -e 's/Google Inc/GoogleInc/g;' |\ | |
| 15 sed -e 's/ -Wunused-value / /g;' |\ | |
| 16 sed -e 's/ -Wswitch-enum / /g;' |\ | |
| 17 sed -e 's/ -pipe / /g;' |\ | |
| 18 sed -e 's/ -o.*\.o / /g;'` | |
| 19 | |
| 20 clang++ -fsyntax-only $ADJUSTED && touch "$TARGETOBJ" | |
| OLD | NEW |