3-9-2 and auto in future MISRA C++14

Moderators: david ward, misra cpp

Post Reply
Posts: 117
Joined: Wed Apr 27, 2016 2:33 pm
Company: Elektrobit Automotive GmbH

3-9-2 and auto in future MISRA C++14

Post by dg1980 » Fri Jul 20, 2018 8:32 am


as stated here (https://misra.org.uk/forum/viewtopic.ph ... 1504#p3404) the next version of MISRA C++ will be based on ISO C++14.
I am curious if you already came to a decision on whether to allow or prohibit the auto keyword for automatic type deduction?
While it is certainly more convenient to write code, i would imagine performing a code review or adapting a static analysis tool would become more challenging.

misra cpp
Posts: 157
Joined: Mon Jun 02, 2008 1:55 pm
Company: MISRA

Re: 3-9-2 and auto in future MISRA C++14

Post by misra cpp » Thu Oct 25, 2018 10:31 am

We are currently working on a new version of MISRA C++ to cover the features added in C++11, 14 and 17 and some requirements from Autosar

The use of auto is part of that work. A draft for public comment is expected next year (2019)
Posted by and on behalf of
the MISRA C++ Working Group

Post Reply

Return to “6.3 Basic concepts (C++)”