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