We could also parse using as a type, and namespace as a comment. That
might allow matching against other kinds of usings.
julia
On Fri, 10 Jun 2011, Julia Lawall wrote:
> On Fri, 10 Jun 2011, Jani Monoses wrote:
>
> > Hello,
> >
> > with this patch in C++ mode, the using directive is treated as a comment so
> > it
> > allows parsing to proceed.
> >
> > Code like
> >
> > #include <iostream>
> >
> > using namespace std;
>
> Thanks!
>
> julia
>
> > int main() {
> > cout << "Hello" << endl;
> > return 0;
> > }
> >
> >
> > It can also be pulled from my cc_parsing branch on github in case it looks
> > good as is :)
> >
> > https://github.com/janimo/coccinelle/commits/cc_parsing
> >
> > thanks
> > Jani
> >
> >
> _______________________________________________
> Cocci mailing list
> [email protected]
> http://lists.diku.dk/mailman/listinfo/cocci
> (Web access from inside DIKUs LAN only)
>
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)