[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
Thu May 12 09:19:42 PDT 2022


aaronpuchert marked an inline comment as done.
aaronpuchert added inline comments.


================
Comment at: clang/include/clang/AST/CommentCommands.td:93
 
+def N      : InlineCommand<"n", 0>;
+
----------------
gribozavr2 wrote:
> Could you add a test that shows that the text after \n is not treated as the argument?
> 
> You could verify the comment AST like here: llvm-project/clang/test/AST/ast-dump-comment.cpp
> 
That's a good idea, I'll do that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125429/new/

https://reviews.llvm.org/D125429



More information about the cfe-commits mailing list