Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(665)

Side by Side Diff: tools/clang_check/cxx_wrapper.sh

Issue 6368055: Commit my clang plugin and fix up documentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add makefile for thakis Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698