Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346414
b: refs/heads/master
c: 5023d34
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Dec 18, 2012
1 parent 6a919bb commit 1d565aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ad50c3896afbb3c103409a18260e601b87a744c
refs/heads/master: 5023d3472d444747bfa12e9798d7993e7efb8287
9 changes: 9 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3013,6 +3013,15 @@ sub process {
"Macros with complex values should be enclosed in parenthesis\n" . "$herectx");
}
}

# check for line continuations outside of #defines

} else {
if ($prevline !~ /^..*\\$/ &&
$line =~ /^\+.*\\$/) {
WARN("LINE_CONTINUATIONS",
"Avoid unnecessary line continuations\n" . $herecurr);
}
}

# do {} while (0) macro tests:
Expand Down

0 comments on commit 1d565aa

Please sign in to comment.