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:

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information