For other regions, the error message contains a good indication of the problem, and there, in general, nothing helpful we can print.
Error pointer to the problematic expression seems enough.
Details
Details
- Reviewers
dcoughlin NoQ - Commits
- rGff4b55949a64: [analyzer] Fix crashes in RetainCountChecker when underlying region is not a var
rL327727: [analyzer] Fix crashes in RetainCountChecker when underlying region is not a var
rC327727: [analyzer] Fix crashes in RetainCountChecker when underlying region is not a var
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Looks good. It is nice to see this fixed. There is one testing nit inline
test/Analysis/retaincountchecker-compoundregion.m | ||
---|---|---|
22 | Can you use // expected-warning-re{{Potential leak of an object$}} here? This will make sure that the diagnostic doesn't include any extra text after 'object'. |
Can you use // expected-warning-re{{Potential leak of an object$}} here? This will make sure that the diagnostic doesn't include any extra text after 'object'.