Using clang-tidy to analyze code is a great feature. Unfortunately, analyze doesn't work on my codebase (a mix of C/C++) when using v7.32. Compared to v7.30, SES v7.32 adds three new switches used to run clang-tidy and modifies one:
The failure is always in the same header:
Display All
Has anyone else seen this and got ideas for a workaround?
Thanks,
-Adam
The failure is always in the same header:
Source Code
- // error on line 1723 of header <functional>
- template<class _Fp, class _Alloc, class _Rp, class ..._ArgTypes>
- const void*
- __func<_Fp, _Alloc, _Rp(_ArgTypes...)>::target(const type_info& __ti) const _NOEXCEPT
- {
- if (__ti == typeid(_Fp)) // <<< error on this line
- return &__f_.__target();
- return (const void*)0;
- }
- // console reports the following
- '__GNUC__' macro redefined [clang-diagnostic-macro-redefined]
- use of typeid requires -frtti [clang-diagnostic-error]
Thanks,
-Adam