Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346419
b: refs/heads/master
c: 481eb48
h: refs/heads/master
i:
  346417: 6fede8a
  346415: 765b59f
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Dec 18, 2012
1 parent 49e8305 commit d41389a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cd7f3869c925622bbf420e1107a026d91dbd7f2
refs/heads/master: 481eb486a88c9b068f0168ac4c21291802720933
4 changes: 3 additions & 1 deletion trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3009,10 +3009,12 @@ sub process {
}
}

# check for line continuations outside of #defines
# check for line continuations outside of #defines, preprocessor #, and asm

} else {
if ($prevline !~ /^..*\\$/ &&
$line !~ /^\+\s*\#.*\\$/ && # preprocessor
$line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm
$line =~ /^\+.*\\$/) {
WARN("LINE_CONTINUATIONS",
"Avoid unnecessary line continuations\n" . $herecurr);
Expand Down

0 comments on commit d41389a

Please sign in to comment.