[all-commits] [llvm/llvm-project] 435757: [Clang] Fix crash caused by line splicing in doc c...

cor3ntin via All-commits all-commits at lists.llvm.org
Wed Apr 12 01:08:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 43575719d0c6d8cf5afedf39f6d89f69231aedc4
      https://github.com/llvm/llvm-project/commit/43575719d0c6d8cf5afedf39f6d89f69231aedc4
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2023-04-12 (Wed, 12 Apr 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/RawCommentList.h
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/Sema.cpp
    M clang/test/Lexer/comment-escape.c

  Log Message:
  -----------
  [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




More information about the All-commits mailing list