[PATCH] D61232: [libclang] Restore old clang_Cursor_isAnonymous behaviour

Ivan Donchevskii via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 28 00:09:30 PDT 2019


yvvan added a comment.

Could you please also upload diff with the full context? It's -U9999 for git and quite similar for svn.
Otherwise looks ok.



================
Comment at: test/Index/print-type.c:70
 // CHECK: TypeRef=struct Struct:16:8 [type=struct Struct] [typekind=Record] [isPOD=1]
+// CHECK: StructDecl=:18:1 (Definition) [type=struct (anonymous at .\test\Index\print-type.c:18:1)] [typekind=Record] [isPOD=1] [nbFields=2] [isAnon=1] [isAnonRecDecl=0]
+// CHECK: StructDecl=:23:1 (Definition) [type=struct (anonymous at .\test\Index\print-type.c:23:1)] [typekind=Record] [isPOD=1] [nbFields=1] [isAnon=1] [isAnonRecDecl=0]
----------------
The path will be different depending on the machine and OS. You can {{.*}}print-type.cpp instead (like in https://reviews.llvm.org/D54996).


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

https://reviews.llvm.org/D61232





More information about the cfe-commits mailing list