This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] RenamerClangTidyChecks ignore builtin and command line macros
ClosedPublic

Authored by njames93 on May 27 2020, 7:03 AM.

Diff Detail

Event Timeline

njames93 created this revision.May 27 2020, 7:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 27 2020, 7:03 AM
aaron.ballman accepted this revision.May 30 2020, 10:41 AM

LGTM, thank you for this!

This revision is now accepted and ready to land.May 30 2020, 10:41 AM
This revision was automatically updated to reflect the committed changes.

arc adds many unneeded tags from Phabricator. You can drop Reviewers: Subscribers: Tags: and the text Summary: with the following script:

arcfilter () {
  arc amend
  git log -1 --pretty=%B | awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:$/ {sub(/^Summary: /,"");print}' | git commit --amend --date=now -F -
}

Reviewed By: is considered important by some people (https://lists.llvm.org/pipermail/llvm-dev/2020-January/137889.html). You should keep the tag. (I started to use --date=now because some people find author date != committer date annoying. The committer date is usually what people care.))

arc adds many unneeded tags from Phabricator. You can drop Reviewers: Subscribers: Tags: and the text Summary: with the following script:

arcfilter () {
  arc amend
  git log -1 --pretty=%B | awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:$/ {sub(/^Summary: /,"");print}' | git commit --amend --date=now -F -
}

Reviewed By: is considered important by some people (https://lists.llvm.org/pipermail/llvm-dev/2020-January/137889.html). You should keep the tag. (I started to use --date=now because some people find author date != committer date annoying. The committer date is usually what people care.))

Thanks for this, got it working nicely here https://github.com/llvm/llvm-project/commit/5952125691571de9bd817551fb1baabe270e73f9