clang-tidy: How to suppress warnings?

后端 未结 4 1827
抹茶落季
抹茶落季 2020-12-30 04:02

I recently started experimenting with the clang-tidy tool of llvm. Now I am trying to suppress false warnings from third party library code. For this I want to

4条回答
  •  误落风尘
    2020-12-30 04:29

    I couldn't achive what I wanted with the commmand line options, so I will use the // NOLINT comments in the cpp files which was proposed by the accepted answer.

    I will also try to push the fix to googletest.

    I found out that lines in the -line-filter options are filtered in. But giving concrete lines is no real solution for my problem anyways. I rather need a suppression mechanism like it is implemented in Valgrind.

提交回复
热议问题