Handle iterators that do not define a value_type type alias.
Get the value type from the return type of Iter::operator* instead.
Paths
| Differential D137782
[clang-tidy]bugprone-fold-init-type ClosedPublic Authored by courbet on Nov 10 2022, 5:14 AM.
Details Summary Handle iterators that do not define a value_type type alias. Get the value type from the return type of Iter::operator* instead.
Diff Detail
Event TimelineEugene.Zelenko added inline comments.
Comment Actions Missing ReleaseNotes,
courbet marked 2 inline comments as done. Comment Actions
Thanks !
Comment Actions Fix release note placement and phrase it more consistenly with other notes in that section. This revision is now accepted and ready to land.Apr 7 2023, 4:35 AM Closed by commit rG1012677284b8: [clang-tidy]bugprone-fold-init-type (authored by courbet). · Explain WhyApr 7 2023, 5:17 AM This revision was automatically updated to reflect the committed changes. Comment Actions Please rebase from latest main.
Revision Contents
Diff 511667 clang-tools-extra/clang-tidy/bugprone/FoldInitTypeCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/bugprone/fold-init-type.cpp
|
referenceType(pointee -> references