主要内容

AUTOSAR C++14 Rule A18-0-3

The library <clocale> (locale.h) and the setlocale function shall not be used

描述

规则定义

The library <clocale> (locale.h) and the setlocale function shall not be used.

Polyspace 实现

setlocalelocaleconv 不应作为宏或具有外部 "C" 链接的全局变量使用。

故障排除

如果您预期会出现违规,而 Polyspace® 未报告该违规,请参阅诊断为何编码规范违规未按预期显示

检查信息

组:语言支持库
类别:必需、自动

版本历史记录

在 R2019a 中推出