mklog: Ignore preprocessor directives.
2015-05-12 Yury Gribov <y.gribov@samsung.com> * mklog: Ignore preprocessor directives. From-SVN: r223081
This commit is contained in:
parent
d5d3b217b3
commit
a92a1c274c
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2015-05-12 Yury Gribov <y.gribov@samsung.com>
|
||||||
|
|
||||||
|
* mklog: Ignore preprocessor directives.
|
||||||
|
|
||||||
2015-04-22 Jakub Jelinek <jakub@redhat.com>
|
2015-04-22 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* gennews (files): Add files for GCC 5.
|
* gennews (files): Add files for GCC 5.
|
||||||
|
|
|
@ -131,7 +131,6 @@ sub is_unified_hunk_start {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if line is a top-level declaration.
|
# Check if line is a top-level declaration.
|
||||||
# TODO: ignore preprocessor directives except maybe #define ?
|
|
||||||
sub is_top_level {
|
sub is_top_level {
|
||||||
my ($function, $is_context_diff) = (@_);
|
my ($function, $is_context_diff) = (@_);
|
||||||
if (is_unified_hunk_start ($function)
|
if (is_unified_hunk_start ($function)
|
||||||
|
@ -143,7 +142,7 @@ sub is_top_level {
|
||||||
} else {
|
} else {
|
||||||
$function =~ s/^.//;
|
$function =~ s/^.//;
|
||||||
}
|
}
|
||||||
return $function && $function !~ /^[\s{]/;
|
return $function && $function !~ /^[\s{#]/;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Read contents of .diff file
|
# Read contents of .diff file
|
||||||
|
|
Loading…
Add table
Reference in a new issue