kadircet accepted this revision.
kadircet marked an inline comment as done.
kadircet added a comment.
This revision is now accepted and ready to land.

LGTM, thanks!



================
Comment at: clang/test/Index/annotate-comments-typedef.m:20
 } MyEnum;
-// CHECK: TypedefDecl=MyEnum:[[@LINE-1]]:3 (Definition) FullCommentAsHTML=[<p 
class="para-brief"> Documentation for MyEnum </p>] FullCommentAsXML=[<Typedef 
file="{{[^"]+}}annotate-comments-typedef.m" line="[[@LINE-1]]" 
column="3"><Name>&lt;anonymous&gt;</Name><USR>c:@EA@MyEnum</USR><Declaration>typedef
 enum MyEnum MyEnum</Declaration><Abstract><Para> Documentation for MyEnum 
</Para></Abstract></Typedef>]
+// CHECK: TypedefDecl=MyEnum:[[@LINE-1]]:3 (Definition) {{.*}} 
FullCommentAsHTML=[<p class="para-brief"> Documentation for MyEnum </p>] 
FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.m" 
line="[[@LINE-1]]" 
column="3"><Name>MyEnum</Name><USR>c:@T@MyEnum</USR><Declaration>typedef enum 
MyEnum MyEnum</Declaration><Abstract><Para> Documentation for MyEnum 
</Para></Abstract></Typedef>]
 
----------------
sammccall wrote:
> kadircet wrote:
> > sorry for being dense, what exactly is the change here ? it looks like 
> > comment was already being attributed to `MyEnum`. 
> > As for the USR I agree that this looks a whole lot better, apparently for 
> > anon decls USR contains the name of the typedef decl instead.
> > 
> > What is the extra text that we don't care in between?
> Yeah, most of this doesn't matter AFAIK and the test is just brittle, as lit 
> tests are wont to be.
> 
> The {{.*}} is because the output now includes the RawComment= clause, that 
> previously wasn't included. (Which I think is to do with the comment being 
> immediately before the location?)
> 
> Previously the `Name` was `<anonymous>`, and now it's `MyEnum`. And the USR 
> has changed as you noted.
oh missed the change in `Name` thanks for pointing it out!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70203



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to