Skip to content

Commit 95f8433

Browse files
committed
Add support for clang 3.9 (trunk) (see bug #32)
The fields without file defintion have been added to the list of tags which need to be skipped. Chery-picked from develop branch
1 parent c10bfdc commit 95f8433

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

pygccxml/parser/scanner.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,19 @@ def __read_location(self, decl, attrs):
261261
if "CastXML" in utils.xml_generator:
262262
# These fields are generated by clang, and have no location.
263263
# Just set an empty location for them. Gccxml does not have
264-
# this problem. See also bug #19.
264+
# this problem.
265+
# bug #19: gp_offset, fp_offset, overflow_arg_area, reg_save_area
266+
# bug #32: isa, flags, str and length were added in llvm 3.9
265267
to_skip = [
266-
"gp_offset", "fp_offset", "overflow_arg_area", "reg_save_area"]
268+
"gp_offset",
269+
"fp_offset",
270+
"overflow_arg_area",
271+
"reg_save_area",
272+
"isa",
273+
"flags",
274+
"str",
275+
"length"
276+
]
267277

268278
if "name" in attrs and attrs["name"] in to_skip:
269279
decl.location = declarations.location_t('', -1)

0 commit comments

Comments
 (0)