History

checkpatch: add short int to c variable types

short int is one of the 6.7.2 c90 types. Find it appropriately. This fixes a defect in checkpatch where it suggests that a line break after declaration is required using an input like: int foo; short int bar; Without this change, it warns on the short int line.

Joe Perches committed 12 years ago

Commit 3f7bc4e1 parent 0fe3dc21 file · +1 −0Browse files

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

Unified · Split

scripts/checkpatch.pl+1−0
@@ -356,6 +356,7 @@ our $signature_tags = qr{(?xi: · 355 unmodified lines
356356 our @typeList = (
357357 qr{void},
358358 qr{(?:unsigned\s+)?char},
359+ qr{(?:unsigned\s+)?short\s+int},
359360 qr{(?:unsigned\s+)?short},
360361 qr{(?:unsigned\s+)?int},
361362 qr{(?:unsigned\s+)?long},

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