History

checkpatch: allow space between colon and bracket

Allow a space between a colon and subsequent opening bracket. This sequence may occur in inline assembler statements like asm( "ldr %[out], [%[in]]\n\t" : [out] "=r" (ret) : [in] "r" (addr) );

Heinrich Schuchardt committed 8 years ago

Commit 38dca981 parent 6a487211 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -4089,7 +4089,7 @@ sub process { · 4088 unmodified lines
40894089 my ($where, $prefix) = ($-[1], $1);
40904090 if ($prefix !~ /$Type\s+$/ &&
40914091 ($where != 0 || $prefix !~ /^.\s+$/) &&
4092− $prefix !~ /[{,]\s+$/) {
4092+ $prefix !~ /[{,:]\s+$/) {
40934093 if (ERROR("BRACKET_SPACE",
40944094 "space prohibited before open square bracket '['\n" . $herecurr) &&
40954095 $fix) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t