[Clang] Fix crash caused by line splicing in doc comment
authorCorentin Jabot <corentinjabot@gmail.com>
Tue, 11 Apr 2023 14:32:31 +0000 (16:32 +0200)
committerCorentin Jabot <corentinjabot@gmail.com>
Wed, 12 Apr 2023 08:07:51 +0000 (10:07 +0200)
commit43575719d0c6d8cf5afedf39f6d89f69231aedc4
tree9773e5de7245bb8aad9f2b33c04353fbbf7326e9
parent01b5c60d9ae09b666459330b62b78decdaae5d94
[Clang] Fix crash caused by line splicing in doc comment

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

Reviewed By: shafik, aaron.ballman

Differential Revision: https://reviews.llvm.org/D148029
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