Auto-generated cpp rules