From: Baptiste L. <gai...@fr...> - 2002-12-20 22:01:58
|
----- Original Message ----- From: "Andre Baresel" <and...@gm...> To: "CppTool Mailing List" <Cpp...@li...> Sent: Friday, December 20, 2002 9:20 PM Subject: [Cpptool-develop] Next things .. > Well, since holidays start I'm not sure if my family is taking to much > of my spare time :-) > But I will check the Dev-C++ IDE and think about parsing full files, > which need to be discussed isn't it ? Yes. I already have some ideas concerning this. The difficult part will probably be dealing with unknown macros which do not end with a semi-colon. It will be fairly import that the full parser has good fault tolerance. > And testing of cause the VC6 plug in ! > Tell me Baptiste if there's a small job like the last one. Well, I can't think of one now, but you could get started on the IntroduceExplainingVariable refactoring. While it is not possible at the current time, when the full parser will be done, we might want to try to guess the return type of the extracted expression instead of asking it to the user. I don't know for you, but I often use this refactoring when dealing with a long chain of call: contact.getAddress().getPostalCode() => const Address &address = contact.getAddress(); address.getPostalCode(); If the type of 'contact' is known (and the class declaration), we should be able to guess the type of the expression. This will be difficult as it will require expression analysis and interpretation. Baptiste. > -- Andre |