cpp.py: parse class/struct/enum/namespace declarations