[llvm] [Support] Add end/error to decode[US]LEB128AndInc (PR #90006)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 22:49:27 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 18268ac0f48d93c2bcddb69732761971669c09ab 7d97a0c0649c29df1c4c7ff3bdfb115ab4df6132 -- llvm/include/llvm/Support/LEB128.h llvm/unittests/Support/LEB128Test.cpp llvm/utils/TableGen/DecoderEmitter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Support/LEB128.h b/llvm/include/llvm/Support/LEB128.h
index 3877898e28..a15b73bc14 100644
--- a/llvm/include/llvm/Support/LEB128.h
+++ b/llvm/include/llvm/Support/LEB128.h
@@ -200,8 +200,7 @@ inline int64_t decodeSLEB128(const uint8_t *p, unsigned *n = nullptr,
return Value;
}
-inline uint64_t decodeULEB128AndInc(const uint8_t *&p,
- const uint8_t *end,
+inline uint64_t decodeULEB128AndInc(const uint8_t *&p, const uint8_t *end,
const char **error = nullptr) {
unsigned n;
auto ret = decodeULEB128(p, &n, end, error);
@@ -209,8 +208,7 @@ inline uint64_t decodeULEB128AndInc(const uint8_t *&p,
return ret;
}
-inline int64_t decodeSLEB128AndInc(const uint8_t *&p,
- const uint8_t *end,
+inline int64_t decodeSLEB128AndInc(const uint8_t *&p, const uint8_t *end,
const char **error = nullptr) {
unsigned n;
auto ret = decodeSLEB128(p, &n, end, error);
``````````
</details>
https://github.com/llvm/llvm-project/pull/90006
More information about the llvm-commits
mailing list