This topic describes compiler warnings and errors. The compiler sends these messages, along with the erroneous source line, to stderr.
Error messages report syntactic or semantic misuse of C or C++. The compiler always displays error messages. Errors suppress object code for the module containing the error and prevent linking, but they allow parsing to continue to detect other possible errors.
The following are some representative error messages:
expected ';' at end of declaration
unexpected type name 'b': expected expression
For a list of Clang diagnostics options, see Diagnostic flags in Clang.