[scudo][standalone] Add a standalone vector class
authorKostya Kortchinsky <kostyak@google.com>
Wed, 27 Feb 2019 16:30:05 +0000 (16:30 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Wed, 27 Feb 2019 16:30:05 +0000 (16:30 +0000)
commitb3a924afd6867da3677bf2c0cca8c1200b867eab
treef525e6ecc4810db46e915a4badb85f182cbf7e50
parent5cd5f8f2563395f8767f94604eb4c4bea8dcbea0
[scudo][standalone] Add a standalone vector class

Summary:
This CL adds a standalone vector class that will be used by the scoped
strings when they land. We reimplement our own vector class because we
can't use the std library one.

It's mostly borrowed from the current sanitizer_common one, with LLVM
code style changes.

Additionnally a casing change in a function name that slipped through
the previous review (the function isn't used yet).

Reviewers: vitalybuka, eugenis, flowerhack, dmmoore415, mcgrathr, morehouse

Reviewed By: vitalybuka

Subscribers: mgorny, delcypher, #sanitizers, llvm-commits

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D58689

llvm-svn: 354999
compiler-rt/lib/scudo/standalone/CMakeLists.txt
compiler-rt/lib/scudo/standalone/common.h
compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt
compiler-rt/lib/scudo/standalone/tests/vector_test.cc [new file with mode: 0644]
compiler-rt/lib/scudo/standalone/vector.h [new file with mode: 0644]