This is an archive of the discontinued LLVM Phabricator instance.

[clang] do not emit note for bad conversion when destination type qualifiers don't compatibly include source type qualifiers
ClosedPublic

Authored by zequanwu on Sep 29 2021, 3:01 PM.

Diff Detail

Event Timeline

zequanwu requested review of this revision.Sep 29 2021, 3:01 PM
zequanwu created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2021, 3:01 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
zequanwu retitled this revision from [clang] do not emit note for bad conversion when destination type qualifiers are not compatibly include source type qualifiers to [clang] do not emit note for bad conversion when destination type qualifiers don't compatibly include source type qualifiers.Sep 29 2021, 3:02 PM
rsmith accepted this revision.Sep 29 2021, 4:59 PM

Thanks! Would it be worth also including a testcase where the from and to types are different classes but the qualifications are incompatible, to ensure we're handling that case too?

This revision is now accepted and ready to land.Sep 29 2021, 4:59 PM
zequanwu updated this revision to Diff 376299.Sep 30 2021, 11:23 AM

Add a testcase that from and to type are differ and qualification are incompatible.