Open carlosgalvezp opened 1 day ago
Example:
struct RegularException { RegularException(int); }; class Foo { public: Foo(){} private: RegularException x_{123}; };
Gives:
[source>:12:24: warning: suspicious exception object created but not thrown; did you mean 'throw RegularException'? [bugprone-throw-keyword-missing]](javascript:;) 12 | RegularException x_{123}; | ^
Godbolt
@llvm/issue-subscribers-clang-tidy
Author: Carlos Galvez (carlosgalvezp)
Example:
Gives:
Godbolt