2011/01/03

cppcheck & understand

I am searching useful static code analyzer.

Firstly, I evaluated Understand that can check the MISRA's list automatically. Although I have MISRA-C++ pdf, manual check is not effective and not efficient. I think the Understand is so nice.
But, it is too expensive to buy it for personal programming!

Next, I tried to use the cppcheck. It can check less than the Understand; however, it is free. Cppcheck could not check several codes ... progress was freezed on its way. But, it found some mistakes. When finding more useful checker, I use cppcheck now. Inexpensive checkers that support C++ is few.

Thus, I do not buy the Understand and use cppcheck.

XPEG & Hyphen(-) at the Left Bound in a Class of PEG

develog - C++: Hyphen(-) should be put at the Left Bound in a Class of PEG

I caused such error again ... So, I wrote the class, sign as "[+-]".
In this case, my XPEG reported with non-straightforward message. Then I had to find the error by reading dumped trace log.

As I got burned at the error, I changed PEG format of XPEG and made XPEG allow it.

Range <- Char '-' !']' Char / Char

How to set parameters to debugging program on Visual Studio 2019 with CMake

Solution: MSDN Sometimes the "Debug and Launch Settings for CMake" bottun is disabled. In this case, change to the target view. ...