Me, still using negative int values to represent errors in 2023 😴
The C++ committee really dropped the ball by adding std::optional in C++17 but failing to follow suit and add a std::result monadic vocabulary type similar to Rust's std::result. Supporting a vocabulary type that provides syntactic sugar to handle both success and error return types represents a missed opportunity to improve C++'s readability and developer experience.
CMake also helps integrate Cppcheck by setting a single CMake variable when configuring a CMake project:
CMAKE_C_CPPCHECKand/orCMAKE_CXX_CPPCHECK.Low-effort, high-reward.