noKeyword Language Option (C++)

Syntax: Default:
lang(noKeyword, string)

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 keywords defined by the C++ standard are reserved names.

If you have code that has identifier names that have been adopted by the C++ standard as keywords, use this option to treat a keyword as an ordinary identifier. Apply the option repeatedly to treat more than one keyword as an ordinary identifier.

For compatibility with earlier versions of VisualAge C++ and predecessor products, and with Microsoft Visual C++, build with the following options:

lang(noKeyword,"asm")
lang(noKeyword,"bool")
lang(noKeyword,"const_cast")
lang(noKeyword,"explicit")
lang(noKeyword,"export")
lang(noKeyword,"false")
lang(noKeyword,"mutable")
lang(noKeyword,"namespace")
lang(noKeyword,"reinterpret_cast")
lang(noKeyword,"static_cast")
lang(noKeyword,"true")
lang(noKeyword,"typename")
lang(noKeyword,"using")

You can reinstate a keyword using lang(keyword, string).



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