Skip to content

Namespaces on decl are outputting namespace as defined name #46

@mjdecker

Description

@mjdecker

With a declaration like:

int Space::name;

Space and name are reported as user defined names. It seems to supposed to handled here:

                //Deal with complex function names
                //If it is a function name, collect the complex name ex. String::length, String::operator+=
                //If it is a decl collect simple name only
                if (((category == "destructor") || (category == "constructor") || (category == "function")) && (elementStack.back() != "name")) {
                    if (elementStack.size() != 0) elementStack.pop_back();
                    return;
                }

But it is missing the decl check mentioned in the comment. Changing this, fixes that, but breaks other tests. Need to look further

                //Deal with complex function names
                //If it is a function name, collect the complex name ex. String::length, String::operator+=
                //If it is a decl collect simple name only
                if (((category == "destructor") || (category == "constructor") || (category == "function") || (category == "decl")) && (elementStack.back() != "name")) {
                    if (elementStack.size() != 0) elementStack.pop_back();
                    return;
                }

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