Skip to content

Commit c5a5294

Browse files
committed
Treat auto as a type
It is a type in C++. Let's treat it as such to avoid false-positive spacing errors when processing C++ source files.
1 parent 3d1a4e9 commit c5a5294

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎checkpatch.pl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ sub find_standard_signature {
608608
);
609609

610610
our @typeList = (
611+
qr{auto},
611612
qr{void},
612613
qr{(?:(?:un)?signed\s+)?char},
613614
qr{(?:(?:un)?signed\s+)?short\s+int},

0 commit comments

Comments
 (0)