This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Ignore variable template partial specializations in `misc-definitions-in-headers`
ClosedPublic

Authored by Izaron on Feb 6 2022, 5:01 PM.

Details

Summary

Variable template partial specializations are inline and can't lead
to ODR-violations. The checker now ignores them.

Fixes https://github.com/llvm/llvm-project/issues/53519

Diff Detail

Event Timeline

Izaron created this revision.Feb 6 2022, 5:01 PM
Izaron requested review of this revision.Feb 6 2022, 5:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 6 2022, 5:01 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Izaron added a comment.Feb 6 2022, 5:02 PM

A copy-pasted message below, as usual =)

If this review is eventually approved, kindly please merge the commit on my behalf =) As I don't have merge access. My name is Evgeny Shulgin and email is izaronplatz@gmail.com. Sorry for inconvenience!

hokein accepted this revision.Feb 6 2022, 11:53 PM

thanks!

This revision is now accepted and ready to land.Feb 6 2022, 11:53 PM
philnik added a subscriber: philnik.Feb 7 2022, 1:56 AM