diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index f18750e3bd6c..d4f61a6fed5d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -3013,6 +3013,15 @@ sub process { | |||
| 3013 | "Macros with complex values should be enclosed in parenthesis\n" . "$herectx"); | 3013 | "Macros with complex values should be enclosed in parenthesis\n" . "$herectx"); |
| 3014 | } | 3014 | } |
| 3015 | } | 3015 | } |
| 3016 | |||
| 3017 | # check for line continuations outside of #defines | ||
| 3018 | |||
| 3019 | } else { | ||
| 3020 | if ($prevline !~ /^..*\\$/ && | ||
| 3021 | $line =~ /^\+.*\\$/) { | ||
| 3022 | WARN("LINE_CONTINUATIONS", | ||
| 3023 | "Avoid unnecessary line continuations\n" . $herecurr); | ||
| 3024 | } | ||
| 3016 | } | 3025 | } |
| 3017 | 3026 | ||
| 3018 | # do {} while (0) macro tests: | 3027 | # do {} while (0) macro tests: |
