Change complex types to auto.

Signed-off-by: CyberZHG <CyberZHG@gmail.com>