This is an archive of the discontinued LLVM Phabricator instance.

[clang] NFC: test for undefined behaviour in RawComment::getFormattedText()

Authored by DmitryPolukhin on Jun 4 2021, 2:54 PM.



This diff adds testcase for the issue fixed in
but regression test was not added in the diff. On Clang 9 it caused
crash in cland during code completion.

Test Plan: check-clang-unit

Diff Detail

Event Timeline

DmitryPolukhin requested review of this revision.Jun 4 2021, 2:54 PM
DmitryPolukhin created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2021, 2:54 PM
bruno accepted this revision.Jun 4 2021, 3:34 PM

Thanks for adding more tests! LGTM.

This revision is now accepted and ready to land.Jun 4 2021, 3:34 PM

Fix clang-tidy warning