Menu

#1005 %ignore not utilized for xml output

None
closed-invalid
nobody
xml (6)
5
2023-03-29
2009-04-07
No

%ignore's are not honored for xml output in 1.3.38

Discussion

  • Olly Betts

    Olly Betts - 2022-01-25

    Still seems to be the case with current git - tested with swig -c++ -xml Examples/test-suite/class_ignore.i and looking for Foo in the output shows the class Foo isn't ignored.

     
  • Olly Betts

    Olly Betts - 2023-03-29
    • status: open --> closed-invalid
    • Group: -->
     
  • Olly Betts

    Olly Betts - 2023-03-29

    In https://github.com/swig/swig/issues/2213 @wsfulton said about -xml:

    XML isn't really a target language at all and it never will be! It's not much different to the -debug-top debug option which dumps internal parse tree information. The main difference is the format of the output.

    The Foo class appears in the output of swig -c++ -python -debug-top 1 Examples/test-suite/class_ignore.i (and similarly for -debug-top 2 to -debug-top 4) .

    So while -xml is essentially undocumented, I think this is working as intended - i.e. it's dumping out the parse tree, and class Foo exists in the parse tree. Closing as not-a-bug.

     

Log in to post a comment.