Previous Topic Next topic Print topic


Code Analysis

The following restrictions apply to the code analysis functionality.

Branch prediction

Branch prediction is not enabled. For example, this will not be detected as unreachable code by Dead Code Analysis:
if 0 equals 1
               display "Unreachable code"
           else
               display "World"
           end-if 

Supported languages

Only the COBOL language is supported.

Conditional compilation

Conditional compilation is not supported.

ENTRY defined through variable

ENTRY statements defined through variables are not supported, and the ENTRY's statements will be marked as dead even if they can be called.

working-storage section.
       78 entry-name value "my-entry-name".

       procedure division.
       
       entry entry-name
           display "this is my-entry-name"
           goback
       .

In the example above, the DISPLAY statement will be marked as dead even if it can be called.

Local variable declarations

Local variable declarations are not supported.

Managed code support

Managed code and the new OO COBOL statements are not supported.

Programs compiled with the COBSQL preprocessor

Programs compiled with the COBSQL preprocessor that utilize RDBMS vendor-specific data types may encounter issues using Code Analysis as those items may not be represented in the analysis results. In this case, the analysis features of such programs may not yield any meaningful results or no results at all.

In addition, although the compilation is successful and binaries are generated, there may be compilation error in the IDE editor and the console output.

Previous Topic Next topic Print topic