[//]: # " If the issue is connected to existing Uncrustify options please, if possible, add the" [//]: # " following information to ease up the process:" [//]: # " • a link to a debug file:" [//]: # " generated with: 'uncrustify -p debug.txt -c pathToUsedConfig.cfg -f toBeFormatedFile.cpp' " [//]: # " Example: [debug.txt](https://linkToTheFile)" [//]: # " Example hosters for debug files: pastbin.com, gist.github.com, ..." [//]: # " The used config file is included in the debug file and does not need to be included here." [//]: # [//]: # " • include a small but complete test file that will be uncrustifyed" [//]: # " • include the generated results" [//]: # " • include the expected results" [//]: # [//]: # " ✋ please add a line containing ``` above and below of each of those three code sections" [//]: # [//]: # " • include the current version of your Uncrustify executable" [//]: # " printout via 'uncrustify -v'" [//]: # " Example: current version: uncrustify 0.63" [//]: # " or if possible additionally with the git sha of the commit" [//]: # " current version: uncrustify 0.63 dc7b412" [//]: # [//]: # " • if possible include a version that worked" [//]: # " Example: working version: uncrustify 0.63" [//]: # " or" [//]: # " working version: uncrustify 0.63 2a5e88f" test.cfg: `sp_func_call_paren = remove` input: `void (*g_func_table[32])(void);` expected: same as input output: `void(*g_func_table[32])(void);` space between type and '(' removed.
Activity
guy-maurel commentedon Apr 8, 2017
clang says:
is it what you expected to have?
Could you push a complete example, with use of it?
rhinoshorn commentedon Apr 23, 2017
@guy-maurel Yes, that's what I expected.
I put example code blocks below due to company firewall policy.
test.cfg:
test.c:
test.c.expected:
test.c.uncrustify:
Bugfix for uncrustify#1041
Merge pull request #1143 from guy-maurel/FunctionVariableMishandled
gmaurel commentedon May 11, 2017
is fixed
rhinoshorn commentedon May 14, 2017
thank you~! :)
gmaurel commentedon Dec 18, 2017
The solution is not complicated enough to solve the problem if assignment is NOT in the same block.
Fixed issue uncrustify#1285
Adopt UT tests 60027 and 60028
guy-maurel commentedon Dec 19, 2017
#1512 is a better bugfix.
Thanks to @aneesh1127