Re: [Qemu-devel] [PATCH v2] util/uri.c formating

2018-02-20 Thread Daniel P . Berrangé
On Tue, Feb 20, 2018 at 09:14:16AM +, Peter Maydell wrote: > On 20 February 2018 at 08:02, Su Hang wrote: > > Formating the code with `clang-format -i util/uri.c`. > > My .clang-format file content is: > > ''' > > IndentWidth: 4 > > BreakBeforeBraces: Linux > > ''' > > > > Then use `perl

Re: [Qemu-devel] [PATCH v2] util/uri.c formating

2018-02-20 Thread Peter Maydell
On 20 February 2018 at 08:02, Su Hang wrote: > Formating the code with `clang-format -i util/uri.c`. > My .clang-format file content is: > ''' > IndentWidth: 4 > BreakBeforeBraces: Linux > ''' > > Then use `perl -pi -e "s/return \((.*?)\);/return \1;/g" util/uri.c` > to remove pattern like t

Re: [Qemu-devel] [PATCH v2] util/uri.c formating

2018-02-20 Thread Thomas Huth
On 20.02.2018 09:02, Su Hang wrote: > Formating the code with `clang-format -i util/uri.c`. > My .clang-format file content is: > ''' > IndentWidth: 4 > BreakBeforeBraces: Linux > ''' > > Then use `perl -pi -e "s/return \((.*?)\);/return \1;/g" util/uri.c` > to remove pattern like this: "ret

[Qemu-devel] [PATCH v2] util/uri.c formating

2018-02-20 Thread Su Hang
Formating the code with `clang-format -i util/uri.c`. My .clang-format file content is: ''' IndentWidth: 4 BreakBeforeBraces: Linux ''' Then use `perl -pi -e "s/return \((.*?)\);/return \1;/g" util/uri.c` to remove pattern like this: "return (1);" checkpatch.pl still rise these two kinds of