import cpp from Function f, string d, string c where if f instanceof MemberFunction then ( d = "MemberFunction" and c = f.(MemberFunction).getDeclaringType().getName() ) else ( d = "Function" and c = "" ) select f, d, count(f.getBlock()), c