diff options
author | Yury Gribov <y.gribov@samsung.com> | 2015-05-12 15:31:02 +0000 |
---|---|---|
committer | Yury Gribov <ygribov@gcc.gnu.org> | 2015-05-12 15:31:02 +0000 |
commit | a92a1c274c7a8e88920f67f045dd5314f912a6b2 (patch) | |
tree | 3b24d4afb43eaf3dbb0c04e6872d204d8171a313 /contrib | |
parent | d5d3b217b3a161185c557afcea7cc5406902e746 (diff) | |
download | gcc-a92a1c274c7a8e88920f67f045dd5314f912a6b2.zip gcc-a92a1c274c7a8e88920f67f045dd5314f912a6b2.tar.gz gcc-a92a1c274c7a8e88920f67f045dd5314f912a6b2.tar.bz2 |
mklog: Ignore preprocessor directives.
2015-05-12 Yury Gribov <y.gribov@samsung.com>
* mklog: Ignore preprocessor directives.
From-SVN: r223081
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 4 | ||||
-rwxr-xr-x | contrib/mklog | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 0e99a29..8035bc3 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -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> * gennews (files): Add files for GCC 5. diff --git a/contrib/mklog b/contrib/mklog index f7974a7..455614b 100755 --- a/contrib/mklog +++ b/contrib/mklog @@ -131,7 +131,6 @@ sub is_unified_hunk_start { } # 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) @@ -143,7 +142,7 @@ sub is_top_level { } else { $function =~ s/^.//; } - return $function && $function !~ /^[\s{]/; + return $function && $function !~ /^[\s{#]/; } # Read contents of .diff file |