keyword Language Option (C++)

Syntax: Default:
lang(keyword, string) recognize all C++ keywords

This option controls whether the specified string is treated as a keyword or an identifier whenever it appears in your C++ source.

By default all the built-in keywords defined in the C++ standard are reserved as keywords.

You cannot add keywords to the C++ language with this option. However, you can use it to enable built-in keywords that have been disabled using lang(noKeyword, string). For example, you can reinstate bool with the following option:

lang(keyword, "bool")


Incremental C++ Build
Configuration Files


Set Build Options
Build


Language Options for C++
Build Options for Compliance with the C++ Standard
Build Options for Compatibility with Old C++ Compilers