Parsing for Syntax Only

Use this 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. Diagnostic information is sent to stderr.

icpc -syntax prog1.cpp

See Also