TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  6.4.1.1.aChecked automatically with code checker

Synopsis:Do not use C++ keywords.
Language:C
Severity Level:6
Category:Lexical Elements


Description:

Justification

Keywords from C++ shall not be used as identifier names because of portability and interoperability.

Example

int class; /* WRONG */

Note

C++ keywords that are not available in C are:
alignasalignofautobool
catchchar16_tchar32_tclass
constexprconst_castdecltypedelete
dynamic_castexplicitexportfalse
friendmutablenamespacenew
noexceptnullptroperatorprivate
protectedpublicpublicreinterpret_cast
static_assertstatic_casttemplatethis
thread_localthrowtruetry
typeidtypenameusingvirtual
wchar_t