Skip to content

Overly aggressive namespace skipping #26

@phdum

Description

@phdum

Hi,

I was trying to wrap a file with functions contained a namespace simple_ops. Although I added the -N simple_ops flags when running c++2py, none of the functions in the namespace were wrapped.

The origin of this is that there is a namespace filtering in cpp2desc.py (line 72; I'm using the cpp2py now included in triqs 2.2.x).

    namespaces_to_skip = ['std', 'boost', 'detail', 'impl']

Because "simple_ops" contains "impl" as a substring, this is filtered out. (If I set namespaces_to_skip = [] everything is done correctly.) This is probably not the desired behavior and seems a much to aggressive filtering.

Especially since we manually have to specify which namespaces to wrap via the '-N' command, is this filtering really needed?

In any case, it would be nice to get a message if namespaces are being skipped. It took a while to understand what went wrong.

Thanks!

Philipp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions