[PATCH] D125429: Comment parsing: Allow inline commands to have 0 or more than 1 argument

Aaron Puchert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 11 16:22:33 PDT 2022


aaronpuchert created this revision.
aaronpuchert added a reviewer: gribozavr2.
Herald added a project: All.
aaronpuchert requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

That's required to support `\n`, but can also used for other commands.
The argument parsing is basically duplicated from block commands, but we
can't easily factor that out as they have a different argument data
type.

This should fix #55319.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125429

Files:
  clang/include/clang/AST/Comment.h
  clang/include/clang/AST/CommentCommands.td
  clang/include/clang/AST/CommentSema.h
  clang/include/clang/Basic/DiagnosticCommentKinds.td
  clang/lib/AST/CommentParser.cpp
  clang/lib/AST/CommentSema.cpp
  clang/test/Headers/x86-intrinsics-headers-clean.cpp
  clang/test/Sema/warn-documentation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125429.428805.patch
Type: text/x-patch
Size: 11174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220511/fb11c234/attachment-0001.bin>


More information about the cfe-commits mailing list