Re: [GD-General] C++ analyzers?
Brought to you by:
vexxed72
From: Thatcher U. <tu...@tu...> - 2002-07-18 20:24:58
|
On Jul 18, 2002 at 12:41 -0700, Brian Hook wrote: > Quite true, and this illustrates my earlier comments of how bad most > software development tools. Something as conceptually simple as > renaming a variable can be incredibly difficult to manage. Even using a > standard automated tool like perl or sed/awk you run into the problem > that there's no context. > > We have tools to automatically generate code and do all other kinds of > fluff crap, but if you actually want something that can go through and > rename all instances of "m_foo" for all instances of class "CBar", it > doesn't seem possible. 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've found that manual brute force takes much longer in theory than in practice. Once I had to rename a 3D vector class from "vector" to "vec3" throughout a working game; I was dreading it, but it took all of about 30 minutes. That's by far the worst case I've ever encountered. Sure it would be nice if it took 10 seconds, but it's not something most people have to do every week. -- Thatcher Ulrich http://tulrich.com |