Parsing for Syntax Only

Use the -syntax option to stop processing source files after they have been parsed for C++ language errors. This option provides a method to quickly check whether sources are syntactically and semantically correct. The compiler creates no output file. In the following example, the compiler checks prog.cpp. and displays diagnostic information to the standard error output:

prompt>icpc -syntax prog.cpp