2018年3月,AUTOSAR Coding Guidelines发布了397条规则,其中138条直接取自于MISRA C++ 2008,另外70条做了微小或说明比较明显的修改。还引用了如下C++编码标准,且可追溯。 1、Joint Strike Fighter Air Vehicle C++ coding standards (JSF AV C++) 2、High Integrity C++ coding standard Version 4.0 (HICPP) 3、C...
SEI CERT C++ Coding Standard: Rules for Developing Safe, Reliable, and Secure Systems in C++ https://resources.sei.cmu.edu/forms/secure-coding-cpp-form.cfm
The standard was designed to support AUTOSAR’s Adaptive Platform. But it is a smart choice for all embedded developers. That’s because more development teams are moving from C to C++. Many developers want to use modern C++. And now that the standard is available, it’s easier to move ...
If you expect a rule violation but Polyspace®does not report it, seeDiagnose Why Coding Standard Violations Do Not Appear as Expected. Examples expand all Conversion of Sum to Wider Integer Type Check Information Group:Expressions Category:Required, Automated ...
AUTOSAR组织开发的第一个开放式架构称为“Classic Platform”,该架构的开发以C代码为主体,在做代码静态测试时,应用MISRA C 2012足以。但随着智能化的普及,为了满足车联网及无人驾驶技术的发展需求,AUTOSAR组织推出新架构“Adaptive Platform”,Adaptive Platform的相关API接口由C++语言进行开发。那么问题来了,我们是否可...
Check Information Group:Declaration Category:Required, Automated Version History Introduced in R2019a See Also Check AUTOSAR C++ 14 (-autosar-cpp14) Topics Check for Coding Standard Violations
The defined pre-processor operator shall only be used in one of the two standard forms. Rationale The defined preprocessor operator checks whether an identifier is defined as a macro. In C, the only two permissible forms for this operator are: defined (identifier) defined identifier Using any ...
Specific SW-C development, testing, and Integration with complete software. AUTOSAR BSW Configuration and Integration Development, configuration, and integration of Base Software (BSW). Integration of BSW with application component Configuration of BSW layer with AUTOSAR tools like ETAS, Vector Operating...
位域(bit field)是C语言中的一种特殊数据结构,它允许在结构体或联合体中以位为单位来指定成员的长度。位域主要用于节省存储空间,并简化对某些硬件寄存器的操作。根据C语言标准,位域应为无符号整数类型(unsigned int),或者是枚举类型(其底层类型为无符号整数类型)。这是因为无符号整数类型可以确保所有分配给该字段的...
Rule A17-0-2 ⚯ All project's code including used libraries and any third-party user code shall conform to the AUTOSAR C++14 Coding Guidelines. Rule M17-0-5 The setjmp macro and the longjmp function shall not be used. Rule A17-1-1 Use of the C Standard Library shall be encapsulated...