Displaying 1 result from an estimated 1 matches for "llvm_unsued_result".
2016 Sep 02
2
Adding [[nodiscard]] to Compiler.h
I started to try to use llvm::Error recently. This has nice runtime
checks for if you didn't check the result, but I thought it would be
really nice to get a compiler warning for the obvious cases of this
rather than having to wait for a runtime check.
This, of course, is exactly what the C++17 [[nodiscard]] attribute is
for - with new enough compilers in C++17 mode we can just declare the