If you just need to recognize the declarations in a file, and don't care about templates, you can get away with something much simpler along the lines of what you already have, e.g. /^([\w:]+)\(([^)]*)\)/s
In reply to Re: C/C++ function parsing
by educated_foo
in thread C/C++ function parsing
by ssriganesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |