The MSVC STL defines smart pointer operator* and operator-> as method templates. The existing duck typing implementation doesn't catch this implementation. To keep the duck typing simple, I added the already existing list of known standard to the matchers in registerMatchersForGetArrowStart.
Details
Details
- Reviewers
aaron.ballman alexfh sbenza JonasToth hokein - Commits
- rGe25a0e95104b: Fixed: Duck-typing in readability-redundant-smartptr-get didn't catch MSVC STL…
rL359801: Fixed: Duck-typing in readability-redundant-smartptr-get didn't catch MSVC STL…
rCTE359801: Fixed: Duck-typing in readability-redundant-smartptr-get didn't catch MSVC STL…
Diff Detail
Diff Detail
Event Timeline
clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp | ||
---|---|---|
60 | not clang-formatted |
clang-tools-extra/test/clang-tidy/readability-redundant-smartptr-get-msvc.cpp | ||
---|---|---|
96 | Please add new line. |
clang-tools-extra/test/clang-tidy/readability-redundant-smartptr-get-msvc.cpp | ||
---|---|---|
38 | Unnecessary empty line. |
Comment Actions
LGTM aside from a commenting nit.
clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp | ||
---|---|---|
46 | Missing a full stop at the end of the comment. |
Missing a full stop at the end of the comment.