History

checkpatch: fix complex macros handling of square brackets

Andy Whitcroft committed 14 years ago

Commit c81769f1 parent e01886a1 file · +1 −1Browse files

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

Unified · Split

scripts/checkpatch.pl+1−1
@@ -2815,7 +2815,7 @@ sub process { · 2814 unmodified lines
28152815 # Flatten any parentheses and braces
28162816 while ($dstat =~ s/\([^\(\)]*\)/1/ ||
28172817 $dstat =~ s/\{[^\{\}]*\}/1/ ||
2818− $dstat =~ s/\[[^\{\}]*\]/1/)
2818+ $dstat =~ s/\[[^\[\]]*\]/1/)
28192819 {
28202820 }
28212821

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