forked from OSchip/llvm-project
[Sanitizer] remove using namespace __sanitizer lines
llvm-svn: 157999
This commit is contained in:
parent
ef2e2cfd33
commit
8602c65719
|
@ -23,8 +23,6 @@
|
||||||
#include "interception/interception.h"
|
#include "interception/interception.h"
|
||||||
#include "sanitizer_common/sanitizer_libc.h"
|
#include "sanitizer_common/sanitizer_libc.h"
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
// Use macro to describe if specific function should be
|
// Use macro to describe if specific function should be
|
||||||
// intercepted on a given platform.
|
// intercepted on a given platform.
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
#include "sanitizer_common/sanitizer_defs.h"
|
#include "sanitizer_common/sanitizer_defs.h"
|
||||||
#include "sanitizer_common/sanitizer_libc.h"
|
#include "sanitizer_common/sanitizer_libc.h"
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
#if !defined(__linux__) && !defined(__APPLE__) && !defined(_WIN32)
|
#if !defined(__linux__) && !defined(__APPLE__) && !defined(_WIN32)
|
||||||
# error "This operating system is not supported by AddressSanitizer"
|
# error "This operating system is not supported by AddressSanitizer"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
#include <sys/ucontext.h>
|
#include <sys/ucontext.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
extern "C" void* _DYNAMIC;
|
extern "C" void* _DYNAMIC;
|
||||||
|
|
||||||
namespace __asan {
|
namespace __asan {
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
#include <libkern/OSAtomic.h>
|
#include <libkern/OSAtomic.h>
|
||||||
#include <CoreFoundation/CFString.h>
|
#include <CoreFoundation/CFString.h>
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
namespace __asan {
|
namespace __asan {
|
||||||
|
|
||||||
void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) {
|
void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) {
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
// since most of the stuff here is inlinable.
|
// since most of the stuff here is inlinable.
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
using namespace __sanitizer;
|
|
||||||
|
|
||||||
static const uptr kAltStackSize = SIGSTKSZ * 4; // SIGSTKSZ is not enough.
|
static const uptr kAltStackSize = SIGSTKSZ * 4; // SIGSTKSZ is not enough.
|
||||||
|
|
||||||
namespace __asan {
|
namespace __asan {
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
namespace __asan {
|
namespace __asan {
|
||||||
|
|
||||||
extern char *error_message_buffer;
|
extern char *error_message_buffer;
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
#include "sanitizer_common/sanitizer_libc.h"
|
#include "sanitizer_common/sanitizer_libc.h"
|
||||||
|
|
||||||
namespace __asan {
|
namespace __asan {
|
||||||
using namespace __sanitizer;
|
|
||||||
|
|
||||||
// -------------------------- Flags ------------------------- {{{1
|
// -------------------------- Flags ------------------------- {{{1
|
||||||
static const uptr kMallocContextSize = 30;
|
static const uptr kMallocContextSize = 30;
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
#include "asan_thread_registry.h"
|
#include "asan_thread_registry.h"
|
||||||
#include "sanitizer_common/sanitizer_symbolizer.h"
|
#include "sanitizer_common/sanitizer_symbolizer.h"
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
#ifdef ASAN_USE_EXTERNAL_SYMBOLIZER
|
#ifdef ASAN_USE_EXTERNAL_SYMBOLIZER
|
||||||
extern bool
|
extern bool
|
||||||
ASAN_USE_EXTERNAL_SYMBOLIZER(const void *pc, char *out, int out_size);
|
ASAN_USE_EXTERNAL_SYMBOLIZER(const void *pc, char *out, int out_size);
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
#define TSAN_DEBUG 0
|
#define TSAN_DEBUG 0
|
||||||
#endif // TSAN_DEBUG
|
#endif // TSAN_DEBUG
|
||||||
|
|
||||||
using namespace __sanitizer;
|
|
||||||
|
|
||||||
namespace __tsan {
|
namespace __tsan {
|
||||||
|
|
||||||
const uptr kPageSize = 4096;
|
const uptr kPageSize = 4096;
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
#define CALLERPC ((uptr)__builtin_return_address(0))
|
#define CALLERPC ((uptr)__builtin_return_address(0))
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
using namespace __tsan; // NOLINT
|
using namespace __tsan; // NOLINT
|
||||||
|
|
||||||
namespace __tsan {
|
namespace __tsan {
|
||||||
|
|
|
@ -37,8 +37,6 @@
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
extern "C" int arch_prctl(int code, __sanitizer::uptr *addr);
|
extern "C" int arch_prctl(int code, __sanitizer::uptr *addr);
|
||||||
|
|
||||||
namespace __tsan {
|
namespace __tsan {
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
|
|
||||||
#include <stdarg.h> // va_list
|
#include <stdarg.h> // va_list
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
typedef long long i64; // NOLINT
|
typedef long long i64; // NOLINT
|
||||||
typedef long iptr; // NOLINT
|
typedef long iptr; // NOLINT
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@ extern "C" void __tsan_resume() {
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace __tsan {
|
namespace __tsan {
|
||||||
using namespace __sanitizer;
|
|
||||||
|
|
||||||
THREADLOCAL char cur_thread_placeholder[sizeof(ThreadState)] ALIGNED(64);
|
THREADLOCAL char cur_thread_placeholder[sizeof(ThreadState)] ALIGNED(64);
|
||||||
static char ctx_placeholder[sizeof(Context)] ALIGNED(64);
|
static char ctx_placeholder[sizeof(Context)] ALIGNED(64);
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
#include "tsan_flags.h"
|
#include "tsan_flags.h"
|
||||||
#include "tsan_placement_new.h"
|
#include "tsan_placement_new.h"
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
namespace __tsan {
|
namespace __tsan {
|
||||||
|
|
||||||
// Can be overriden by an application/test to intercept reports.
|
// Can be overriden by an application/test to intercept reports.
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
#include "tsan_mman.h"
|
#include "tsan_mman.h"
|
||||||
#include "tsan_platform.h"
|
#include "tsan_platform.h"
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
namespace __tsan {
|
namespace __tsan {
|
||||||
|
|
||||||
static Suppression *g_suppressions;
|
static Suppression *g_suppressions;
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
#include <linux/limits.h>
|
#include <linux/limits.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
namespace __tsan {
|
namespace __tsan {
|
||||||
|
|
||||||
struct ModuleDesc {
|
struct ModuleDesc {
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
#include "tsan_platform.h"
|
#include "tsan_platform.h"
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
|
|
||||||
using namespace __sanitizer; // NOLINT
|
|
||||||
|
|
||||||
namespace __tsan {
|
namespace __tsan {
|
||||||
|
|
||||||
static void TestThreadInfo(bool main) {
|
static void TestThreadInfo(bool main) {
|
||||||
|
|
Loading…
Reference in New Issue