checkpatch: Recognized volatile as part of a declaration.
Adjust the checkpatch script to recognize the volatile keyword as forming part of a declaration. This prevents inappropriate checkpatch gripes for patches such as: https://gerrit.zephyrproject.org/r/#/c/10345/ Change-Id: Ia29a9002bb9ef15f747d29231d938ae12790724d Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
e4c0a431f9
commit
f62e681a5c
1 changed files with 1 additions and 1 deletions
|
@ -3082,7 +3082,7 @@ sub process {
|
|||
# function pointer declarations
|
||||
$sline =~ /^\+\s+$Declare\s*\(\s*\*\s*$Ident\s*\)\s*[=,;:\[\(]/ ||
|
||||
# foo bar; where foo is some local typedef or #define
|
||||
$sline =~ /^\+\s+$Ident(?:\s+|\s*\*\s*)$Ident\s*[=,;\[]/ ||
|
||||
$sline =~ /^\+\s+(?:volatile\s+)?$Ident(?:\s+|\s*\*\s*)$Ident\s*[=,;\[]/ ||
|
||||
# known declaration macros
|
||||
$sline =~ /^\+\s+$declaration_macros/ ||
|
||||
# start of struct or union or enum
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue