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
- Build Status
Buildable 588 Build 588: arc lint + arc unit
Event Timeline
Comment Actions
LGTM
clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp | ||
---|---|---|
30 | 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 | +1, will do it in a follow-up. |
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.