Oracle® Solaris Studio 12.4: IDE Quick Start Tutorial

Exit Print View

Updated: October 2014
 
 

Using Static Code Error Checking

When you type code in a source or header file in the Source Editor, the editor performs static code error checking as you type and displays an error icon image:error icon in the left margin when it detects an error.

  1. In the quote.cc file of the Quote_1 project, type #include "m" on line 40. A code completion box pops up, recommending two header files that begin with m.

    image:code in Editor window showing code completion box                                 recommendations on line 40
  2. Click in the source editor away from your added code. Notice the error icon that appears in the margin.

    image:code in Editor window showing error icon on line 40
  3. Backspace over the second quotation mark and complete the statement by typing odule.h”, and notice that error icon disappears as soon as the statement references an existing header file.

  4. Delete the statement you have added.

For more information about how to choose which errors to see or to disable static code error checking, see the relevant help page in the IDE.