Because the comment parser does not support slices,
we emit a warning for comments that do contain
a splice within their delimiter, and do not add them as
documentation comment.
Fixes #62054
Paths
| Differential D148029
[Clang] Fix crash caused by line splicing in doc comment ClosedPublic Authored by cor3ntin on Apr 11 2023, 9:55 AM.
Details Summary Because the comment parser does not support slices, Fixes #62054
Diff Detail
Unit TestsFailed Event TimelineComment Actions Do we have a test that covers valid doxygen comments? I was looking and I don't see an obvious one.
Comment Actions
AFAICT, some in CommentTextTest.cpp - not that many though.
Comment Actions The changes seem reasonable to me.
This revision is now accepted and ready to land.Apr 11 2023, 12:36 PM This revision was landed with ongoing or failed builds.Apr 12 2023, 1:08 AM Closed by commit rG43575719d0c6: [Clang] Fix crash caused by line splicing in doc comment (authored by cor3ntin). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 512505 clang/docs/ReleaseNotes.rst
clang/include/clang/AST/RawCommentList.h
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/Sema.cpp
clang/test/Lexer/comment-escape.c
|
Just to double-check, we don't have to worry about there being leading whitespace in Text do we?