The matcher for matching "class with default constructor" still match
some classes without default constructor, which trigger an assert at
Line 307. This patch makes the matcher more strict.
Details
Details
- Reviewers
aaron.ballman - Commits
- rG7c870a7e54ae: [clang-tidy] Fix an assertion failure in cppcoreguidelines-pro-type-member-init.
rCTE284727: [clang-tidy] Fix an assertion failure in cppcoreguidelines-pro-type-member-init.
rL284727: [clang-tidy] Fix an assertion failure in cppcoreguidelines-pro-type-member-init.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp | ||
---|---|---|
30 ↗ | (On Diff #75066) | I think this should be a public AST matcher rather than a private one; it seems like it would be generally useful (along with some of the other similar has* functions). However, I think it's fine for this patch. |
clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp | ||
---|---|---|
30 ↗ | (On Diff #75066) | +1, will do it in a follow-up. |