2

I am trying to use ClangTidy on some working source code but I cannot get it to ignore / bypass lib{fmt} and see lots of noise such as:

~/.conan/data/fmt/9.1.0///package/2c09c8f84c016041549fcee94e4caae5d89424b6/ include/fmt/core.h:2955:15: warning: 5 uninitialized fields at the end of the constructor call [clang-analyzer-optin.cplusplus.UninitializedObject] types_{ ^ ~/.conan/data/fmt/9.1.0///package/2c09c8f84c016041549fcee94e4caae5d89424b6/ include/fmt/core.h:732:7: note: uninitialized field 'this->context_.num_args_' int num_args_; ^~~~~~~~~

I am using CMake + Conan and the diagnostic messages I have come from lib{fmt}.

How can I silence them? For CppCheck it was simply a case of specifying that all files under ~/.conan/ should be ignored.

How do I tell Clang-tidy to ignore all files under ~/.conan/

Note I have seen clang-tidy - ignore third party headers code which does not answer my question

Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
mark
  • 7,381
  • 5
  • 36
  • 61

0 Answers0