Main Content

Language Standard

Language standard to use for the generated code

Description

App Configuration Pane: Output

Configuration Objects: coder.CodeConfig | coder.EmbeddedCodeConfig

Language standard to use for the generated code. The code generator uses the language features and the math libraries available in the selected C/C++ standard. By default, if the Language parameter is set to C, the code generator uses the C99 (ISO) language standard. If the Language parameter is set to C++, the code generator uses the C++11 (ISO) language standard.

Settings

Auto

The code generator sets the Language standard parameter based on the Language parameter. This setting is the default.

C89/C90 (ANSI)

The code generator uses the ISO®/IEC 9899:1990 language standard.

C99 (ISO)

The code generator uses the ISO/IEC 9899:1999 language standard.

C++03 (ISO)

The code generator uses the ISO/IEC 14882:2003 language standard.

C++11 (ISO)

The code generator uses the ISO/IEC 14882:2011(E) language standard.

C++14 (ISO)

The code generator uses the ISO/IEC 14882:2014 language standard.

C++17 (ISO)

The code generator uses the ISO/IEC 14882:2017 language standard.

C++20 (ISO)

The code generator uses the ISO/IEC 9899:2020 language standard.

Programmatic Use

Property: TargetLangStandard
Values: 'Auto' | 'C89/C90 (ANSI)' | 'C99 (ISO)' | 'C++03 (ISO)' | 'C++11 (ISO)' | 'C++14 (ISO)' | 'C++17 (ISO)' | 'C++20 (ISO)'
Default: 'Auto'

Version History

Introduced in R2014a