2015-05-12 Yury Gribov <y.gribov@samsung.com>
* mklog: Ignore preprocessor directives.
From-SVN: r223081
+2015-05-12 Yury Gribov <y.gribov@samsung.com>
+
+ * mklog: Ignore preprocessor directives.
+
2015-04-22 Jakub Jelinek <jakub@redhat.com>
* gennews (files): Add files for GCC 5.
}
# Check if line is a top-level declaration.
-# TODO: ignore preprocessor directives except maybe #define ?
sub is_top_level {
my ($function, $is_context_diff) = (@_);
if (is_unified_hunk_start ($function)
} else {
$function =~ s/^.//;
}
- return $function && $function !~ /^[\s{]/;
+ return $function && $function !~ /^[\s{#]/;
}
# Read contents of .diff file