This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Add option to ignore CRTP overrides in convert-member-functions-to-static
Needs ReviewPublic

Authored by njames93 on Aug 27 2022, 5:13 PM.

Details

Summary

In cases where a member function is a CRTP override, marking the 'derived' as static is likely to reduce in less readable code.

Diff Detail

Event Timeline

njames93 created this revision.Aug 27 2022, 5:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 27 2022, 5:13 PM
njames93 requested review of this revision.Aug 27 2022, 5:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 27 2022, 5:13 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Eugene.Zelenko added inline comments.
clang-tools-extra/docs/clang-tidy/checks/readability/convert-member-functions-to-static.rst
23

Please highlight Derived::shouldTraverse with double back-ticks.

njames93 updated this revision to Diff 456170.Aug 27 2022, 11:11 PM
njames93 marked an inline comment as done.

Fix documentation.

LegalizeAdulthood resigned from this revision.Mar 29 2023, 8:23 AM