Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Update Uncrustify config
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Dec 27, 2023
1 parent 3840663 commit 858954b
Show file tree
Hide file tree
Showing 4 changed files with 3,649 additions and 84 deletions.
3 changes: 2 additions & 1 deletion buildroot/bin/uncrust
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
#

TMPDIR=`mktemp -d`
HERE=`dirname "$0"`

# Reformat a single file to tmp/
if uncrustify -l CPP -c ./buildroot/share/extras/uncrustify.cfg -f "$1" >$TMPDIR/uncrustify.out ; then
if uncrustify -l CPP -c "$HERE/../share/extras/uncrustify.cfg" -f "$1" >$TMPDIR/uncrustify.out ; then
cp "$TMPDIR/uncrustify.out" "$1" ; # Replace the original file
else
echo "Something went wrong with uncrustify."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2021 MarlinFirmware [https:/MarlinFirmware/Marlin]
* Copyright (c) 2023 MarlinFirmware [https:/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
Expand Down
5 changes: 5 additions & 0 deletions buildroot/share/extras/func_header.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* $(function) : Description pending
*
* $(javaparam)
*/
Loading

0 comments on commit 858954b

Please sign in to comment.