aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2021-06-13 07:46:54 +0200
committerTobias Burnus <tobias@codesourcery.com>2021-06-13 07:46:54 +0200
commitd554f43c98eb07f222afef5e90b5582d65519f7e (patch)
tree5263bc35f2684032790aa17f8fc70f94f323cc87 /gcc/tree-data-ref.c
parent8b8c391279fd3d85286b918c45171b825b44b74c (diff)
downloadgcc-d554f43c98eb07f222afef5e90b5582d65519f7e.zip
gcc-d554f43c98eb07f222afef5e90b5582d65519f7e.tar.gz
gcc-d554f43c98eb07f222afef5e90b5582d65519f7e.tar.bz2
contrib/gcc-changelog: Check that PR in subject is in changelog
This patch checks that a '[PRnnnn]' and '(PRnnnn)' also appears as PR in the changelog part of the commit message. And it does likewise for 'PR comp/nnnn' except that then also the component name is checked. (Note that the reverse is permitted, i.e. PR(s) only appearing in the changelog.) To avoid false positives, PR numbers in the subject line are ignored, if 'revert' appears. Additionally, reject commits with a nonempty second line. contrib/ChangeLog: * gcc-changelog/git_commit.py (pr_regex): Add ?P<pr> for group('pr'). (subject_pr_regex, subject_pr2_regex): New. (GitInfo.__init__, GitCommit.parse_changelog): Check subject PRs. * gcc-changelog/git_email.py (SUBJECT_PREFIX, subject_patch_regex): New. (GitEmail.__init__): Parse 'Subject:' and pass it to GitInfo. * gcc-changelog/test_email.py (test_pr_only_in_subject, test_wrong_pr_comp_in_subject, test_copyright_years): New. * gcc-changelog/test_patches.txt (0030-PR-c-92746, pr-check1.patch): Update to avoid triggering the new check. (0001-rs6000-Support-doubleword, pr-wrong-comp.patch, copyright-years.patch): New.
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions