You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
do have anybody a test file for the option sp_paren_paren? #1342
Using the example void f(int (__attribute__((foo)) x)) {}
the option is not used, because the case is catch by the option sp_inside_fparen log_rule2(119): Spacing: line 1 [FPAREN_OPEN/FUNC_DEF] '(' <===> [CPP_CAST/NONE] 'int' : sp_inside_fparen[1274] ...
Any proposal?
I guess the option is not working then. sp_paren_paren should be triggered if both ( tokens are compared, only than the check for (foo is done.
It might be caused because of the parenthesis types, one of the is an FPAREN_OPEN and the other one just PAREN_OPEN.
I think that the FPAREN_OPEN parenthesis should be some other (maybe new) type entirely. See thee noexcept parenthesis ( we don't handle those yet, see here)
Alternatively make the option work with a mix of FPAREN_* and PAREN_*sp_paren_paren overwrite (activate before) sp_inside_fparen .
Activity
CDanU commentedon Sep 15, 2017
Looking at the old SVN Repo this option comes with the very fist commit:
At that point in time the lang enum was defined this way:
Also see GCC Attribute Syntax
guy-maurel commentedon Sep 15, 2017
Using the example
void f(int (__attribute__((foo)) x)) {}the option is not used, because the case is catch by the option
sp_inside_fparenlog_rule2(119): Spacing: line 1 [FPAREN_OPEN/FUNC_DEF] '(' <===> [CPP_CAST/NONE] 'int' : sp_inside_fparen[1274] ...Any proposal?
CDanU commentedon Sep 15, 2017
I guess the option is not working then.
sp_paren_parenshould be triggered if both(tokens are compared, only than the check for(foois done.It might be caused because of the parenthesis types, one of the is an
FPAREN_OPENand the other one just PAREN_OPEN.I think that the
FPAREN_OPENparenthesis should be some other (maybe new) type entirely. See thee noexcept parenthesis ( we don't handle those yet, see here)Alternatively make
the option work with a mix ofFPAREN_*andPAREN_*sp_paren_parenoverwrite (activate before)sp_inside_fparen.guy-maurel commentedon Sep 18, 2017
#1348 is a proposal to make the option active
Prepare better LOG for uncrustify#1342
Prepare better LOG for uncrustify#1342
Prepare a better logging for uncrustify#1342