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;
>
> 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 :)
I made using be a comment, but not namespace. In that case, it is
considered to be a type, and you could write a semantic patch to match
against it. Does that seem useful at all?
julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)