MISRA Discussion Forums
3-9-2 and auto in future MISRA C++14 - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA C++ (https://forum.misra.org.uk/forumdisplay.php?fid=18)
+--- Forum: MISRA C++:2008 rules (https://forum.misra.org.uk/forumdisplay.php?fid=19)
+---- Forum: 6.3 Basic concepts (C++) (https://forum.misra.org.uk/forumdisplay.php?fid=132)
+---- Thread: 3-9-2 and auto in future MISRA C++14 (/showthread.php?tid=1441)



3-9-2 and auto in future MISRA C++14 - dg1980 - 20-07-2018

Hi,

as stated here (https://misra.org.uk/forum/viewtopic.php?f=183&t=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.


Re: 3-9-2 and auto in future MISRA C++14 - misra cpp - 25-10-2018

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)


RE: 3-9-2 and auto in future MISRA C++14 - FSchneider - 20-09-2023

(25-10-2018, 09:31 AM)misra cpp Wrote: 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)

Any news on that?


RE: 3-9-2 and auto in future MISRA C++14 - misra cpp - 27-10-2023

Its imminent.  Look out for announcements from David Ward.