Closed jnohlgard closed 8 years ago
I did not test that, just conjectured.
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 I don't know what you mean with 6, do
is a keyword in C.
@gebart, yes it is. But followed by left curly bracket and not by left parenthesis. I should have been more specific.
Ah, that's a typo. Good job spotting it!
obsolete
According to @authmillenon it should no longer be necessary to run
keyword_space.sed
since #3384