[PATCH] D54996: [libclang] Fix clang_Cursor_isAnonymous

Nikolai Kosjar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 9 23:33:16 PST 2019


nik requested changes to this revision.
nik added inline comments.
This revision now requires changes to proceed.


================
Comment at: test/Index/print-type.cpp:202
 // CHECK: CallExpr=Bar:17:3 [type=outer::inner::Bar] [typekind=Elaborated] [canonicaltype=outer::inner::Bar] [canonicaltypekind=Record] [args= [outer::Foo<bool> *] [Pointer]] [isPOD=0] [nbFields=3]
+// CHECK: StructDecl=:84:3 (Definition) [type=X::(anonymous struct at D:\code\qt_llvm\tools\clang\test\Index\print-type.cpp:84:3)] [typekind=Record] [isPOD=1] [nbFields=1] [isAnon=1]
+// CHECK: ClassDecl=:85:3 (Definition) [type=X::(anonymous class at D:\code\qt_llvm\tools\clang\test\Index\print-type.cpp:85:3)] [typekind=Record] [isPOD=1] [nbFields=1] [isAnon=1]
----------------
Hard coded paths will probably only work on your machine ;)


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

https://reviews.llvm.org/D54996





More information about the cfe-commits mailing list