clang-tidy can hangs infinitly with clang 16.x
Description:
clang-tidy has buggy "bugprone-unchecked-optional-access" check, that cause clang-tidy hangs for long time. This check is important for me, so I can not turn it off. See link to mainstream issue bellow:
Additional info:
-
package version(s): 16.0.6-1
-
link to upstream bug report, if any: https://github.com/llvm/llvm-project/issues/69298
Steps to reproduce:
Described in link above.
Because of bug of clang-tidy, I have to revert clang, revert llvm, revert lld, lldb, mesa, postresql and so on.
It would be nice to move clang-tidy and scan-build (clang static analyzer) to separate package, to force such huge problem.
And this bug fixed in clang 17.x.