New checker called misc-throw-keyword-missing warns about cases where a temporary object's type is (likely) an exception but is not thrown. This is done by checking whether the type's name (or one of its baseclass' name) contains the substring "EXCEPTION", "Exception" or "exception".
void f(int i){ if(i = 0) // Exception is created but not thrown. std::runtime_error("Wrong argument"); }
This wording is a bit unclear. How about:
Diagnoses when a temporary object that appears to be an exception is constructed but not thrown.