On Sat, Nov 27, 2010 at 9:15 AM, Derek M Jones <[email protected]> wrote: > Julia, > >> Perhaps we could organize a project to connect the two. If anyone has >> some good arguments as to why the kinds of transformations Coccinelle is >> good at would be useful in C++ code, that could be helpful. Actually, I >> have never written anything in C++ :) > > Usable Open Source C++ source tools are virtually nonexistent because of > the difficulties of parsing C++. > > If the 'Coccinelle' C++ parser is capable of handling the full > language (ie, what g++ can parse) then I think you will find > a lot of people interested in helping.
The ast specification I think is quite complete: https://github.com/facebook/pfff/blob/master/lang_cpp/parsing/ast_cpp.ml but there are lots of things that need to be done to put the rest in good shape. I've just hacked what was necessary for some of the experiments in one of my paper: http://padator.org/papers/yacfe-cc09.pdf Many of the cpp (the preprocessor) parsing improvements have not been back-ported to the C++ parser for instance. > > -- > Derek M. Jones tel: +44 (0) 1252 520 667 > Knowledge Software Ltd mailto:[email protected] > Source code analysis http://www.knosof.co.uk > _______________________________________________ > 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)
