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
29302930 my $var = $1;
29312931 if ($var !~ /$Constant/ &&
29322932 $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]/ &&
29342934 !defined $camelcase{$var}) {
29352935 $camelcase{$var} = 1;
29362936 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