主要内容

ISO/IEC TS 17961 [resident]

Using identifiers that are reserved for the implementation

描述

规则定义

Using identifiers that are reserved for the implementation.1

Polyspace 实现

此检查项检查保留标识符或宏名称的声明

示例

全部展开

问题

当声明了保留标识符或宏名称时,会出现此问题。

如果定义与标准库宏、对象或函数对应的宏名称,则违反规则 21.1。

该规则将暂定的定义也视为定义。

风险

此标准允许具体实现对保留标识符进行特殊处理。如果重复使用保留标识符,可能会导致未定义的行为。

检查信息

可判定性:可判定

版本历史记录

在 R2019a 中推出


1 Extracts from the standard "ISO/IEC TS 17961 Technical Specification - 2013-11-15" are reproduced with the agreement of AFNOR. Only the original and complete text of the standard, as published by AFNOR Editions - accessible via the website www.boutique.afnor.org - has normative value.