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
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
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
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