Tells a source code analyzer to process include files and source files when issuing diagnostic messages.
Windows: Diagnostics > Analyze Include Files
Linux: Compilation Diagnostics > Analyze Include Files
Mac OS X: Diagnostics > Analyze Include Files
IA-32, Intel® 64 architectures
Linux and Mac OS X: | -diag-enable sc-include |
Windows: | /Qdiag-enable:sc-include |
None
OFF |
The compiler issues certain diagnostic messages by default. If the Source Checker is enabled, include files are not analyzed by default. |
This option tells a source code analyzer (Source Checker) to process include files and source files when issuing diagnostic messages. Normally, when Source Checker diagnostics are enabled, only source files are analyzed.
To use this option, you must also specify -diag-enable sc (Linux and Mac OS X) or /Qdiag-enable:sc (Windows) to enable the Source Checker diagnostics, or -diag-enable sc-parallel (Linux and Mac OS X) or /Qdiag-enable:sc-parallel (Windows) to enable parallel lint.
Linux and Mac OS X: -diag-enable sv-include (this is a deprecated option)
Windows: /Qdiag-enable:sv-include (this is a deprecated option)
The following example shows how to cause include files to be analyzed as well as source files:
-diag-enable sc -diag-enable sc-include ! Linux and Mac OS systems
/Qdiag-enable:sc /Qdiag-enable:sc-include ! Windows systems
In the above example, the first compiler option enables Source Checker messages. The second compiler option causes include files referred to by the source file to be analyzed also.