Use clang-tidy to simplify boolean conditional return statements
Diff Detail
Diff Detail
Event Timeline
tools/yaml2obj/yaml2coff.cpp | ||
---|---|---|
117 | Might be the following code even better? return parseSections() && parseSymbols(); |
Comment Actions
The way it already is makes it immediately clear that this is forwarding errors, and immediately indicates what the sense of the error bool is. The suggested alternatives require head scratching/digging around. I vote to keep it as-is.
Might be the following code even better?