[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Controlling ARM Conformance

When the ARM Conformance option in the C/C++ Language Panel is on, CodeWarrior C++ generates an error when it encounters certain ANSI/ISO C++ features that conflict with the C++ specification in The Annotated C++ Reference Manual. Use this option only if you must make sure that your code strictly follows the specification in The Annotated C++ Reference Manual.

Turning on this option prevents you from doing the following

Turning on this option allows you to do the following:

  • Using variables declared in the condition of a for statement after the for statement (K&R, §9.5). For example:

  • for(int i=1; i<1000; i++) { /* ... */ }
    return i;  // OK in ARM, Error in CodeWarrior C++

    This option corresponds to the pragma ARM_conform. To check whether this option is on, use __option (ARM_conform). By default, this option is off.

    See also "ARM_conform" and "Checking Options."


    [ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

    Visit the Metrowerks website at: http://www.metrowerks.com
    For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
    Copyright © 2000, Metrowerks Corp. All rights reserved.

    Last updated: August 17, 2000