Ignore thirdparty library errors in clang-tidy
See original GitHub issueHi,
we have written cpp code which includes the boost library and while running with clang-tidy,we are getting an error which i am unable to fix since the error is coming from the boost library.
However, we have used some flags in .clang-tidy file like
HeaderFilterRegex: '^(?!.*external).*'
Error: external/boost/boost/assign/list_of.hpp:455:29: error: no matching constructor for initialization of ‘boost::assign_detail::generic_list<std::pair<const std::basic_string_view<char16_t, std::char_traits<char16_t> >, std::shared_ptrsabre::base::parsers::ContextSAXHandler > >::Ty’ (aka ‘std::pair<const std::basic_string_view<char16_t, std::char_traits<char16_t> >, std::shared_ptrsabre::base::parsers::ContextSAXHandler >’) [clang-diagnostic-error] this->push_back(Ty(boost::forward<U0>(u0), boost::forward<U1>(u1), boost::forward<Us>(us)…));
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:9 (5 by maintainers)
Top GitHub Comments
It would appear that my HeaderFilterRegex solution does not work because apparently clang-tidy does not support negative lookaheads in regular expressions.
@mariru27 I will see what I can do over the weekend.
Hi @Sil3ntStorm,
Can you help us by providing a small project with now behavior and how it should work? Verbose log from output will be helpful
Kind regards, Marina