search for: reportanerror

Displaying 1 result from an estimated 1 matches for "reportanerror".

2018 Sep 17
10
Should functions returning bool return true or false on success?
Hi, in https://reviews.llvm.org/D52143 there's some uncertainty if LLVM code prefers if (!Function()) // Call to function failed, deal with it or if (Function()) // Call to function failed, deal with it (Note that this is about functions returning bool, not int.) Folks on that review feel that returning true on success is probably what we want, but it's not documented