We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 427c071 commit ec6ef3dCopy full SHA for ec6ef3d
clang/bindings/python/tests/cindex/test_type.py
@@ -549,11 +549,8 @@ class A : public home::Foo {
549
};
550
"""
551
tu = get_tu(source, lang="cpp")
552
- c = get_cursor(tu, "A")
553
- pp = PrintingPolicy.create(c)
554
- base = list(c.get_children())[0].type.get_declaration()
555
- set_it = list(base.get_children())[1]
556
- arg = list(set_it.get_arguments())[0]
+ arg = next(get_cursor(tu, "setIt").get_arguments())
+ pp = PrintingPolicy.create(arg)
557
self.assertEqual(arg.type.get_fully_qualified_name(pp), "home::Bar *")
558
self.assertEqual(arg.type.get_fully_qualified_name(pp, True), "::home::Bar *")
559
0 commit comments