Uncrustify in Crossworks
Hi,
we are using uncrustify as an external tool to format our code. We linked it to a keyboard shortcut so that it is easier to run. And it works perfectly when the file we want to uncrustify is of .c extension. But when the opened file in the editor is of type .h something goes wrong. A random .c file gets sent to the uncrustify tool. Any idea why this would happen? I'm attaching the tools.xml we use in CrossWorks to support this operation.
Thank you for your help and possible suggestions on how to fix this.
Sincerely
Primož
tools.xml file we use:
<tools>
<!-- Uncrustify (located in edoss dir) -->
<item name="Tool.Uncrustify" wait="yes">
<menu>Uncrustify</menu>
<text>Uncrustify</text>
<tip>Format selected item with Uncrustify</tip>
<message>Uncustifying</message>
<match>*.c;*.h</match>
<key>Ctrl+Q, Ctrl+Q</key>
<commands>
"$(UncrustifyDir)\uncrustify.exe" -c "$(UncrustifyDir)\uncrustify.cfg" --replace "$(InputPath)" --no-backup
</commands>
</item>
</tools>
Please sign in to leave a comment.
Comments
0 comments