_COSYMB Conditional Symbols Report

Top  Previous  Next

 

Targets: All

 

This report has different sections presenting information about conditional symbols.

 

Sections:

 

COND1-Conditional symbols that were defined ($DEFINE) in code

COND2-Conditional symbols that were undefined ($UNDEF) in code

COND3-Conditional symbols/expressions that were evaluated as true ($IF/$IFDEF/$ELSEIF)

COND4-Conditional symbols/expressions that were evaluated as false ($IF/$IFDEF/$ELSEIF)

COND5-Unnecessary $DEFINE/$UNDEF

 

COND6-Unnecessary $IFDEF/$IFNDEF

COND7-$DEFINE/IFDEF used but no matching $IFDEF/$IFNDEF in code

 

 

 

COND1-Conditional symbols that were defined ($DEFINE) in code

This is a list of all conditional symbols that were defined in the parsed code. Use this list for a sanity-check that your code defines the correct symbols. This section also reports symbols that are defined in code that is excluded for reporting.

 

 

COND2-Conditional symbols that were undefined ($UNDEF) in code

This is a list of all conditional symbols that were undefined in the parsed code. Use this list for a sanity-check that your code defines the correct symbols. This section also reports symbols that are defined in code that is excluded for reporting.

 

 

COND3-Conditional symbols/expressions that were evaluated as true ($IF/$IFDEF/$ELSEIF)

This is a list of all conditional symbols or expressions that at some point in the code were evaluated as true.

 

 

COND4-Conditional symbols/expressions that were evaluated as false ($IF/$IFDEF/$ELSEIF)

This is a list of all conditional symbols or expressions that at some point in the code were evaluated as false.

 

 

COND5-Unnecessary $DEFINE/$UNDEF

This section lists locations in the source code where a $DEFINE or $UNDEF directive is repeated unnecessarily. The directive can normally be removed from the location where it is repeated, giving code that is easier to comprehend and maintain.

 

Example

 

clip0131

 

 

COND6-Unnecessary $IFDEF/$IFNDEF

This section lists locations in the source code where a $IFDEF or $IFNDEF directive is repeated unnecessarily. The directive can normally be removed from the location where it is repeated, giving code that is easier to comprehend and maintain.

 

Example

 

clip0132

 

 

COND7-$DEFINE/IFDEF used but no matching $IFDEF/$IFNDEF in code

This section lists conditional symbols that were defined ($DEFINE/IFDEF) either in code, or by options, but are not referenced ($IFDEF/$IFNDEF) in the code. Those conditional symbols are probably unnecessary and can be removed.

 

 

See also:

 

R_REF Reference Reports