Skip to content

Commit e609ccc

Browse files
Matthew WilcoxLinus Torvalds
authored andcommitted
Fix Lindent to not indent preprocessor comments so far
I recently ran Lindent over the AdvanSys driver and it moved the comments on #else and #endif lines way over to the right: #else /* ADVANSYS_DEBUG */ This doesn't match what I expect from kernel style, but it is documented. We just need another flag to indent to make this look like: #else /* ADVANSYS_DEBUG */ Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 178554a commit e609ccc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/Lindent‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs "$@"
2+
indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 "$@"

0 commit comments

Comments
 (0)