Without compiling code, I would like GCC or Clang to report warnings. Is it possible to run the compiler for static analysis only? I can\'t find a way to pass the compi
Both GCC and Clang have an option -fsyntax-only that makes the compiler only perform syntax checking without any actual compilation.
-fsyntax-only