Replace booleans with the more descriptive llvm::Error or llvm::Expected<T>
Details
Diff Detail
Event Timeline
Should there be any tests associated with these changes?
clang-tools-extra/clang-doc/BitcodeReader.cpp | ||
---|---|---|
308 | Probably not important or it's just me being picky/dumb, but is this exit the intended behavior of this program when reaching this function? If so, should the exit also be expected even when using llvm::Error? This also applies to the other times exit() is called in these add functions. | |
311 | Is it necessary to change the return value to llvm::Error for what were originally void functions? |
There are, this is just supposed to be a NFC so the tests don't need to change. They all pass :)
You could use Differential revision: <review URL> in commit description to close review automatically.
Please also include Support/Error.h