Re: [GD-General] C++ analyzers?
Brought to you by:
vexxed72
From: Thatcher U. <tu...@tu...> - 2002-07-18 21:24:00
|
On Jul 18, 2002 at 02:13 -0700, Brian Sharon wrote: > > > > Well, the compiler can sure help: > > > > 1. rename "m_foo" to "m_foobar" in the header > > > > 2. compile > > > > 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. 1. Side note, MHO: "protected:" is the work of the Devil. 2. I agree you should be wary. > 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. 3. This scares me as much as manual edits... I think the XP people have a good point here with automated unit tests -- sleep easier always, whether you made changes manually or via a tool. -- Thatcher Ulrich http://tulrich.com |