We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

This resource has not currently been approved, and is not currently linked to from our directory of resources. It is being displayed here for preview by the author and moderators only.
Rated
Read 244 times

Contents

Related Categories

The use of the code analysis library OpenC++: modifications, improvements, error corrections - 13. Processing of constructions "using" and "namespace" inside functions.

AndreyKarpov

13. Processing of constructions "using" and "namespace" inside functions.

OpenC++ library doesn't know that inside functions "using" and "namespace" constructions may be used. But one can easily correct it by modifying Parser::rStatement() function:

bool Parser::rStatement(Ptree*& st)
{
...
    case USING :
        return rUsing(st);
    case NAMESPACE :
      if (lex->LookAhead(2) == '=')
        return rNamespaceAlias(st);
      return rExprStatement(st);
...
}

Comments