-fsyntax-only and --analyze

Hi All£¡

  What's the difference between -fsyntax-only and --analyze option.

  I want to use clang to process my code and prompt errors and warnings as many an possible, but not compile my code.

  Which option should I use, -fsyntax-only or --analyze?

  Thanks!
         
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡fiveight
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡fiveight@tom.com
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2012-10-29

-fsyntax-only checks syntax
–analyze runs the static analyzer