[Doxygen-users] Bug
Brought to you by:
dimitri
From: Shane S. <sh...@bl...> - 2001-05-15 01:53:21
|
Hi, I have found a nasty little bug which has lost me a LOT of time. Symptom: Sometimes all the member documentation disappears for certain classes. So if I put a =91;=92 after a macro use it all works, the prob= lem is it is perfectly legal c/c++ NOT to have a semi colon, and all compiler pre-processors can handle not having one, and hence I use it when I want = a macro to look like a function call, and other times I use it for pure pre-processor replacement. I have hundreds of files without a =91;=92, s= o to go back and add one is painful, and incorrect. Cause: Using macros, inside a class, and not putting a semi-colon on the = end of its use. Example: Fail example: #define MACRO() public: class blah { MACRO() public: blah(){}; ~blah(){}; }; Work example: #define MACRO() public: class blah { MACRO(); public: blah(){}; ~blah(){}; }; Has anyone else seen this problem before? Can it be fixed easily? Thanks, Shane _____ Shane Stevens <http://staff.bluetongue.com/~shane/> Lead Programmer bluetongue <http://www.bluetongue.com/> _____ |