AUTOSAR C++14 Rule A1-1-1
All code shall conform to ISO/IEC 14882:2014 - Programming Language C++ and shall not use deprecated features
Description
Rule Definition
All code shall conform to ISO/IEC 14882:2014 - Programming Language C++ and shall not use deprecated features.
Rationale
The AUTOSAR C++14 guidelines are based on the C++14 standard (ISO/IEC 14882:2014). Language extensions outside the standard are not covered by these guidelines. If you follow the AUTOSAR C++14 guidelines for safe and secure coding, you must stay within the C++14 standard for the guidelines to cover your code.
Polyspace Implementation
The rule checker reports language extensions that are not strictly part of the C++14 Standard. The extensions could be part of a later standard or part of a specific dialect such as GCC or Microsoft® Visual C++®. The rule violations are reported as compilation errors as a strict C++14 compiler would report them.
For effective use of this rule, make sure to enable the C++14 standard for the Polyspace®
Bug Finder™ analysis. For more information, see C++ standard version (-cpp-version)
.
Troubleshooting
If you expect a rule violation but Polyspace does not report it, see Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Examples
Check Information
Group: General |
Category: Required, Automated |
Version History
Introduced in R2019a