Related work on C/C++ refactoring
Related work on C/C++ refactoring
Posted Jan 30, 2009 7:03 UTC (Fri) by padator (guest, #56235)In reply to: Related work on C/C++ refactoring by tglek
Parent article: Semantic patching with Coccinelle
How long does it take to express the 2 program transformations mentionned in val's article using Pork ? With coccinelle it takes respectively 7 and 9 lines of SmPL, and it can be applied on the whole kernel, including
code in arch/, in code protected by ifdef, etc.
code in arch/, in code protected by ifdef, etc.
Regarding CPP, how MCPP handles ifdef ? How much of the linux kernel can you analyse ? How many lines MCPP skip to make your parsing job easier ?
How do you handle iterator macros ? In the case of coccinelle we need sometimes to express transformations on macros, on iterators, declarors, and so we must try to not expand macro and represent macro directly in the internal AST.