RE: [GD-General] C++ analyzers?
Brought to you by:
vexxed72
From: Brian S. <bs...@mi...> - 2002-07-18 21:13:41
|
> -----Original Message----- > From: Thatcher Ulrich [mailto:tu...@tu...]=20 > Sent: Thursday, July 18, 2002 1:21 PM > To: gam...@li... > Subject: Re: [GD-General] C++ analyzers? >=20 > > We have tools to automatically generate code and do all=20 > other kinds of > > fluff crap, but if you actually want something that can go=20 > through and > > rename all instances of "m_foo" for all instances of class=20 > "CBar", it > > doesn't seem possible. >=20 > Well, the compiler can sure help: >=20 > 1. rename "m_foo" to "m_foobar" in the header >=20 > 2. compile >=20 > 3. visit each compile error and fix by hand (or with an editor macro > if it's a big job) I do this too but it makes me wary and there's always room for me to mess it up. Sure the code compiles, but is it right? Maybe I mistyped "m_fobar" for one of those substitution and my base class just so happened to have one of those. Now, an uber-script that makes the name substitution project-wide, rebuilds the project, and checks to see that the output binaries are bitwise identical...that would be cool. I would trust that a lot more than my highly fallible self. --brian |