[PATCH v4 18/19] scripts: apibuild: factor out comment cleaning