A colleague was working on a Perl script to consume a C++ source file and add text above all of the methods in the file. He was looking to develop code using regular expressions from the ground up to detect the top line of the method:
void MyClass::MyMethod(int somethingOrOther)
Trying to do this from scratch is fraught with landmines, like discriminating the method headers from macros, comments, conditionals, etc.
This may be the really, really hard way to do things, as VS 2005 seems to be able to figure out exactly where all of the methods start and end (so that I can click on the box to collapse the method source).
Is there an easy way within the VS 2005 IDE to add some text above each method, solution-wide?