Open
Description
With attached file if you run (with clang/llvm 15.0.7):
for i in $(seq 1 10); do clang-tidy test.cpp -checks='-*,bugprone-unchecked-optional-access' -- --std=c++17; done
all works fine.
But with clang/llvm 16.0.6
it hangs on time from 2 minutes to more then several hours.
And it happens randomly, some times run takes several seconds, some times minutes or hours.
On my machine, running the clang-tidy (16.0.6) 10 times results in a 100% hang.