I know that misra is not meant to be used on std::string's, but it is able to detect bad coding practices on cpp-files. So it would be nice to limit the amount of false errors.
void misra_9_4 () { std::string std_string_array[5]= {"aaa","bbb","ccc","ddd","eee"};//<-- M.9.4 An element of an object shall not be initialized more than once float arr[5] = { 1.0, 2.0, 3.0, 4.0, 5.0 }; }
Log in to post a comment.
I know that misra is not meant to be used on std::string's, but it is able to detect bad coding practices on cpp-files. So it would be nice to limit the amount of false errors.