[PATCH] D78050: Introduce `__sanitizer::ArrayRef<T>` type.

Dan Liew via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 13:35:08 PDT 2020


delcypher created this revision.
delcypher added reviewers: kubamracek, yln, kcc, dvyukov, vitalybuka, cryptoad, eugenis.
Herald added subscribers: Sanitizers, jfb, mgorny.
Herald added a project: Sanitizers.
delcypher added a child revision: D78051: Introduce `EnvArray` data structure..

This type is a light-weight container around a contiguous sequence
of elements of type `T`.

The type is inspired by LLVM ADT's ArrayRef but has more limited
functionality.

This patch includes tests for the new type but no uses in the runtime
itself.  In future patches I will use this type as a foundation for
building a safe abstraction for operating on an environment array.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78050

Files:
  compiler-rt/lib/sanitizer_common/CMakeLists.txt
  compiler-rt/lib/sanitizer_common/sanitizer_array_ref.h
  compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
  compiler-rt/lib/sanitizer_common/tests/sanitizer_array_ref_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78050.257090.patch
Type: text/x-patch
Size: 11009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200413/e15df264/attachment-0001.bin>


More information about the llvm-commits mailing list