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
2815 # Flatten any parentheses and braces2815 # Flatten any parentheses and braces
2816 while ($dstat =~ s/\([^\(\)]*\)/1/ ||2816 while ($dstat =~ s/\([^\(\)]*\)/1/ ||
2817 $dstat =~ s/\{[^\{\}]*\}/1/ ||2817 $dstat =~ s/\{[^\{\}]*\}/1/ ||
2818 $dstat =~ s/\[[^\{\}]*\]/1/)2818 $dstat =~ s/\[[^\[\]]*\]/1/)
2819 {2819 {
2820 }2820 }
2821 2821

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