Skip to content

Commit 858954b

Browse files
committed
πŸ§‘β€πŸ’» Update Uncrustify config
1 parent 3840663 commit 858954b

File tree

4 files changed

+3649
-84
lines changed

4 files changed

+3649
-84
lines changed

β€Žbuildroot/bin/uncrust

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
#
55

66
TMPDIR=`mktemp -d`
7+
HERE=`dirname "$0"`
78

89
# Reformat a single file to tmp/
9-
if uncrustify -l CPP -c ./buildroot/share/extras/uncrustify.cfg -f "$1" >$TMPDIR/uncrustify.out ; then
10+
if uncrustify -l CPP -c "$HERE/../share/extras/uncrustify.cfg" -f "$1" >$TMPDIR/uncrustify.out ; then
1011
cp "$TMPDIR/uncrustify.out" "$1" ; # Replace the original file
1112
else
1213
echo "Something went wrong with uncrustify."

β€Žbuildroot/share/extras/header.h β€Žbuildroot/share/extras/file_header.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Marlin 3D Printer Firmware
3-
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
3+
* Copyright (c) 2023 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
44
*
55
* Based on Sprinter and grbl.
66
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* $(function) : Description pending
3+
*
4+
* $(javaparam)
5+
*/

0 commit comments

Comments
Β (0)