mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 13:35:38 +08:00
[asan] Remove using std::vector and using std::map
Looks like these are not needed anymore. llvm-svn: 294200
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "sanitizer_common/sanitizer_internal_defs.h"
|
||||
#include <sanitizer/allocator_interface.h>
|
||||
#include <sanitizer/asan_interface.h>
|
||||
#include <vector>
|
||||
|
||||
TEST(AddressSanitizerInterface, GetEstimatedAllocatedSize) {
|
||||
EXPECT_EQ(0U, __sanitizer_get_estimated_allocated_size(0));
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
#include "asan_interface_internal.h"
|
||||
#include "asan_test_utils.h"
|
||||
#include <vector>
|
||||
|
||||
TEST(AddressSanitizerInternalInterface, SetShadow) {
|
||||
std::vector<char> buffer(17, 0xff);
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
#include "asan_test_utils.h"
|
||||
#include <vector>
|
||||
|
||||
template<typename T>
|
||||
void MemSetOOBTestTemplate(size_t length) {
|
||||
@@ -76,7 +77,7 @@ TEST(AddressSanitizer, MemSetOOBTest) {
|
||||
// Strictly speaking we are not guaranteed to find such two pointers,
|
||||
// but given the structure of asan's allocator we will.
|
||||
static bool AllocateTwoAdjacentArrays(char **x1, char **x2, size_t size) {
|
||||
vector<uintptr_t> v;
|
||||
std::vector<uintptr_t> v;
|
||||
bool res = false;
|
||||
for (size_t i = 0; i < 1000U && !res; i++) {
|
||||
v.push_back(reinterpret_cast<uintptr_t>(new char[size]));
|
||||
|
||||
@@ -17,13 +17,9 @@
|
||||
#ifndef ASAN_TEST_CONFIG_H
|
||||
#define ASAN_TEST_CONFIG_H
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
using std::string;
|
||||
using std::vector;
|
||||
using std::map;
|
||||
|
||||
#ifndef ASAN_UAR
|
||||
# error "please define ASAN_UAR"
|
||||
|
||||
Reference in New Issue
Block a user