I'm not sure it should be added to the InlineComment group. It's not entirely a markup. Do you think it should be a in a separate group?
(I also have not yet posted code for \emoji which is also in the InlineComment group.)
Paths
| Differential D69223
WDocumentation: Implement the \anchor. ClosedPublic Authored by Mordante on Oct 20 2019, 9:18 AM.
Details
Summary I'm not sure it should be added to the InlineComment group. It's not entirely a markup. Do you think it should be a in a separate group? (I also have not yet posted code for \emoji which is also in the InlineComment group.)
Diff Detail
Event TimelineComment Actions Thank you for the contribution and sorry for the review delay!
Comment Actions A few more comments, but generally looks good!
Mordante added inline comments. gribozavr2 added inline comments.
Comment Actions With that last comment, LGTM. Do you have commit access?
This revision is now accepted and ready to land.Dec 3 2019, 4:36 AM Comment Actions Thanks for the review! I recently acquired commit access so I'll commit it after updating the unit test.
Mordante added inline comments.
Comment Actions LGTM, feel free to push.
Closed by commit rGbe1a9b3863b6: [Wdocumentation] Implement \anchor (authored by Mordante). · Explain WhyDec 21 2019, 5:53 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 235016 clang/bindings/xml/comment-xml-schema.rng
clang/include/clang-c/Documentation.h
clang/include/clang/AST/Comment.h
clang/include/clang/AST/CommentCommands.td
clang/lib/AST/CommentSema.cpp
clang/lib/AST/JSONNodeDumper.cpp
clang/lib/AST/TextNodeDumper.cpp
clang/lib/Index/CommentToXML.cpp
clang/test/AST/ast-dump-comment.cpp
clang/test/Index/Inputs/CommentXML/valid-inline-command-01.xml
clang/test/Index/comment-to-html-xml-conversion.cpp
clang/test/Index/comment-xml-schema.c
clang/test/Sema/warn-documentation.cpp
clang/tools/c-index-test/c-index-test.c
clang/tools/libclang/CXComment.cpp
|
Since the name of the anchor is not a part of the document text, it should be an attribute on the anchor tag (not a part of the text).