RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

astyle: Update docs

Open jnohlgard opened this issue 11 years ago • 6 comments

According to @authmillenon it should no longer be necessary to run keyword_space.sed since #3384

jnohlgard avatar Jul 21 '15 13:07 jnohlgard

I did not test that, just conjectured.

miri64 avatar Jul 21 '15 13:07 miri64

Have been curious about that.

1  s/\bif(/if (/
2  s/\bswitch(/switch (/
3  s/\bcase(/case (/
4  s/\bwhile(/while (/
5  s/\bfor(/for (/
6  s/\bdo(/do (/
7  s/! /!/

Lines 1,2,3,4,5 are covered by used astyle parameter --pad-header. Line 6 isn't, as you wouldn't have ~~that~~ do followed by left parenthesis in C likes.
There seems to be nothing in astyle which could perform the substitution in Line 7.

A-Paul avatar Jul 21 '15 15:07 A-Paul

@A-Paul I don't know what you mean with 6, do is a keyword in C.

jnohlgard avatar Jul 21 '15 17:07 jnohlgard

@gebart, yes it is. But followed by left curly bracket and not by left parenthesis. I should have been more specific.

A-Paul avatar Jul 21 '15 18:07 A-Paul

Ah, that's a typo. Good job spotting it!

jnohlgard avatar Jul 21 '15 18:07 jnohlgard

obsolete

OlegHahm avatar Mar 09 '16 00:03 OlegHahm