Closed SteveLee123 closed 3 months ago
It's not false postives, it's just compiling failure.
The root cause is still cppsafe cannot detect your system headers. I cannot solve this without concrete environment.
Another solution is letting cmake to generate a full compile_commands.json which contains all headers paths. Add the following config to your CMakeFiles.txt
if(CMAKE_EXPORT_COMPILE_COMMANDS)
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
endif()
when I use cppsafe at my project. I got so many false positive like this. Do you have any idea about it ?