[Unreal Engine] Add Linux and Mac support to GenerateClangDatabase in UBT
Code that I pushed to Unreal Engine 5 main branch. It adds support to generate the clang database in Linux and Mac.
Before the commit that functionality was only available on Windows.