[llvm] [nfc] Allow forwarding `Error` returns from `Expected` callers (PR #92208)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 14 19:51:06 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 13b265c7b5c6a989427639e33893c158f737480b 6cedc34faa8b6a35a8c426ac2b7ba921ef03d58b -- llvm/include/llvm/Support/Error.h llvm/lib/Bitstream/Reader/BitstreamReader.cpp llvm/lib/Object/COFFObjectFile.cpp llvm/lib/Object/WindowsResource.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Support/Error.h b/llvm/include/llvm/Support/Error.h
index 217130ce29..6fb7ee97ff 100644
--- a/llvm/include/llvm/Support/Error.h
+++ b/llvm/include/llvm/Support/Error.h
@@ -497,7 +497,8 @@ public:
: HasError(true)
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
// Expected is unchecked upon construction in Debug builds.
- , Unchecked(true)
+ ,
+ Unchecked(true)
#endif
{
assert(Err && "Cannot create Expected<T> from Error success value.");
``````````
</details>
https://github.com/llvm/llvm-project/pull/92208
More information about the llvm-commits
mailing list