Fixes PR#52400. The tests for bugprone-throw-keyword-missing actually already contain exceptions as class members, but not as members with initializers, which was probably just an oversight.
Sure can! What name and email address would you like used for patch attribution? I'm in C standards meetings all this week so if someone else is able to land this before I get to it, I will not be hurt. :-)