[compiler-rt] [scudo] Make BufferPool typed and always express sizes in terms of element count (PR #66896)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 26 02:17:36 PDT 2023
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 4f330b7f756e3244f7b7a9a654ea153c23d80319 13490d0600f9ed4f23d70a4ff19854d432781ad6 -- compiler-rt/lib/scudo/standalone/release.cpp compiler-rt/lib/scudo/standalone/release.h compiler-rt/lib/scudo/standalone/tests/release_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/scudo/standalone/release.h b/compiler-rt/lib/scudo/standalone/release.h
index efe3d03fc046..89ca884b4de4 100644
--- a/compiler-rt/lib/scudo/standalone/release.h
+++ b/compiler-rt/lib/scudo/standalone/release.h
@@ -208,15 +208,9 @@ private:
class RegionPageMap {
public:
RegionPageMap()
- : Regions(0),
- NumCounters(0),
- CounterSizeBitsLog(0),
- CounterMask(0),
- PackingRatioLog(0),
- BitOffsetMask(0),
- SizePerRegion(0),
- BufferNumElements(0),
- Buffer(nullptr) {}
+ : Regions(0), NumCounters(0), CounterSizeBitsLog(0), CounterMask(0),
+ PackingRatioLog(0), BitOffsetMask(0), SizePerRegion(0),
+ BufferNumElements(0), Buffer(nullptr) {}
RegionPageMap(uptr NumberOfRegions, uptr CountersPerRegion, uptr MaxValue) {
reset(NumberOfRegions, CountersPerRegion, MaxValue);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/66896
More information about the llvm-commits
mailing list