[all-commits] [llvm/llvm-project] fade04: [Clang][Comments] Add argument parsing for @throw ...

hdoc via All-commits all-commits at lists.llvm.org
Mon Jun 10 14:00:21 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fade04f81da9db974204b9d7c58b4affd0422d6e
      https://github.com/llvm/llvm-project/commit/fade04f81da9db974204b9d7c58b4affd0422d6e
  Author: hdoc <68132204+hdoc at users.noreply.github.com>
  Date:   2024-06-10 (Mon, 10 Jun 2024)

  Changed paths:
    M clang/include/clang/AST/CommentCommands.td
    M clang/include/clang/AST/CommentParser.h
    M clang/lib/AST/CommentParser.cpp
    M clang/lib/Index/CommentToXML.cpp
    M clang/test/Index/comment-to-html-xml-conversion.cpp
    M clang/unittests/AST/CommentParser.cpp

  Log Message:
  -----------
  [Clang][Comments] Add argument parsing for @throw @throws @exception (#84726)

Doxygen allows for the `@throw`, `@throws`, and `@exception` commands to
have an attached argument indicating the type being thrown. Currently,
Clang's AST parsing doesn't support parsing out this argument from doc
comments. The result is missing compatibility with Doxygen.

This PR implements parsing of arguments for the `@throw`, `@throws`, and
`@exception` commands. Each command can only have one argument, matching
the semantics of Doxygen.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list