How to use cppcheck's inline suppression filter option for C++ code?

前端 未结 4 1934
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-30 22:35

I would like to use Cppcheck for static code analysis of my C++ code. I learned that I can suppress some kind of warnings with --inline-suppr command. However,

4条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-30 23:34

    If you're using the GUI, you can right click on the message that you want to suppress to pop up a menu. Select "Copy message id". Paste the message id into your code in place of "suppressed_error_id".

提交回复
热议问题