History

checkpatch: improve CamelCase test for Page

Add the ClearPage/SetPage/TestClearPage/TestSetPage variants to the not reported Page CamelCase variables.

Joe Perches committed 13 years ago

Commit be987d91 parent adf96e61 file · +1 −1Browse files

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

Unified · Split

scripts/checkpatch.pl+1−1
@@ -2930,7 +2930,7 @@ sub process { · 2929 unmodified lines
2930 my $var = $1;2930 my $var = $1;
2931 if ($var !~ /$Constant/ &&2931 if ($var !~ /$Constant/ &&
2932 $var =~ /[A-Z]\w*[a-z]|[a-z]\w*[A-Z]/ &&2932 $var =~ /[A-Z]\w*[a-z]|[a-z]\w*[A-Z]/ &&
2933 $var !~ /^Page[A-Z]/ &&2933 $var !~ /"^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ &&
2934 !defined $camelcase{$var}) {2934 !defined $camelcase{$var}) {
2935 $camelcase{$var} = 1;2935 $camelcase{$var} = 1;
2936 WARN("CAMELCASE",2936 WARN("CAMELCASE",

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