<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi folks,<br></div>Is there any way to change function return type for all declarations? My use case is:<br><br></div><div>int foo(); // may be in header<br></div><div><br></div>int foo() {<br></div>    return true;<br></div>    return false;<br>}<br><br></div>I would like to find functions that have return type of int, but they have all return statements returning bool, and then change the return type of this function (for each declaration) to bool.<br></div>The matching is duable, but I am wondering if it is possible to do this fixit. Is there any way to get all declarations of some function?<br></div>Also, what happen if I would not see one declaration in this TU, f.e. because this TU would not include header. I would't want it to result in UB.<br><br></div>Best<br></div>Piotr<br></div>