Submitted by Peter Burns on Tue, 10 Aug 1999 11:08:38
+1000
I've been having a problem with perceps generating
duplicate classes and structs.
Perceps seems to misinterpret some function
implementations as struct or class
definitions. Heres an example of the code that
gets misinterpreted.
struct CommonInterface::HCConfig*
ConfigBs::GetHCConfig()
{
...
}
The line of code that causes this problem is in
PROCINPUT. I didn't keep the pristine source so I
won't be able to give you the correct line number
but the line contains
#
# Examine extracted statement blocks: Determine type
and process appropriately
#
...
elsif ($isdef && ($block =~
/^\s*(class|struct|union)\s+(\w+)/) && (%precomm
|| !$docselect))
Replacing it with one that makes sure that a "{"
is on the end seems to fix the problem.
elsif ($isdef && ($block =~
/^\s*(class|struct|union)\s+([^\(\{\;]*)\{/) &&
(%precomm || !$docselect))
Peter Burns