Skip to content

Commit 3679749

Browse files
committed
Merge remote-tracking branch 'fork/main'
2 parents 1b313ae + 926400d commit 3679749

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

clang/bindings/python/clang/cindex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2600,7 +2600,7 @@ def get_fully_qualified_name(self, policy, with_global_ns_prefix=False):
26002600
This includes full qualification of all template parameters.
26012601
26022602
policy - This PrintingPolicy can further refine the type formatting
2603-
with_global_ns_prefix - If true, function will prepend a '::' to qualified names
2603+
with_global_ns_prefix - If true, prepend '::' to qualified names
26042604
"""
26052605
return _CXString.from_result(
26062606
conf.lib.clang_getFullyQualifiedName(self, policy, with_global_ns_prefix)

clang/bindings/python/tests/cindex/test_type.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -549,11 +549,8 @@ class A : public home::Foo {
549549
};
550550
"""
551551
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]
552+
arg = next(get_cursor(tu, "setIt").get_arguments())
553+
pp = PrintingPolicy.create(arg)
557554
self.assertEqual(arg.type.get_fully_qualified_name(pp), "home::Bar *")
558555
self.assertEqual(arg.type.get_fully_qualified_name(pp, True), "::home::Bar *")
559556

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ Python Binding Changes
645645
the cursor is a specialization of.
646646
- Added ``Type.get_methods``, a binding for ``clang_visitCXXMethods``, which
647647
allows visiting the methods of a class.
648-
- Added ``Type.getFullyQualifiedName``, which provides fully qualified type names as
648+
- Added ``Type.get_fully_qualified_name``, which provides fully qualified type names as
649649
instructed by a PrintingPolicy.
650650

651651
OpenMP Support

0 commit comments

Comments
 (0)