[llvm-dev] [cfe-dev] Should functions returning bool return true or false on success?
Krzysztof Parzyszek via llvm-dev
llvm-dev at lists.llvm.org
Wed Sep 19 15:22:38 PDT 2018
On 9/19/2018 5:04 PM, James Courtier-Dutton via llvm-dev wrote:
> I would take the opinion that the code should be self documenting.
> So, based on the function name, it should be obvious which it is.
So "analyzeBranch" returns "true" or "false" on failure? And if it's not
obvious, does it mean that the name is wrongly chosen?
-Krzysztof
More information about the llvm-dev
mailing list