Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Side by Side Diff: third_party/WebKit/Source/wtf/AddressSanitizer.h

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WTF_AddressSanitizer_h 5 #ifndef WTF_AddressSanitizer_h
6 #define WTF_AddressSanitizer_h 6 #define WTF_AddressSanitizer_h
7 // TODO(kojii): This file will need to be renamed, because it's no more 7 // TODO(kojii): This file will need to be renamed, because it's no more
8 // specific to AddressSanitizer. 8 // specific to AddressSanitizer.
9 9
10 #include "wtf/build_config.h" 10 #include "wtf/build_config.h"
11 11
12 // TODO(sof): Add SyZyASan support? 12 // TODO(sof): Add SyZyASan support?
13 #if defined(ADDRESS_SANITIZER) 13 #if defined(ADDRESS_SANITIZER)
14 #include <sanitizer/asan_interface.h> 14 #include <sanitizer/asan_interface.h>
15 #else 15 #else
16 #define ASAN_POISON_MEMORY_REGION(addr, size) \ 16 #define ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
17 ((void)(addr), (void)(size)) 17 #define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
18 #define ASAN_UNPOISON_MEMORY_REGION(addr, size) \
19 ((void)(addr), (void)(size))
20 #endif 18 #endif
21 19
22 #if defined(LEAK_SANITIZER) 20 #if defined(LEAK_SANITIZER)
23 #include <sanitizer/lsan_interface.h> 21 #include <sanitizer/lsan_interface.h>
24 #else 22 #else
25 #define __lsan_register_root_region(addr, size) ((void)(addr), (void)(size)) 23 #define __lsan_register_root_region(addr, size) ((void)(addr), (void)(size))
26 #define __lsan_unregister_root_region(addr, size) ((void)(addr), (void)(size)) 24 #define __lsan_unregister_root_region(addr, size) ((void)(addr), (void)(size))
27 #endif 25 #endif
28 26
29 #if defined(MEMORY_SANITIZER) 27 #if defined(MEMORY_SANITIZER)
(...skipping 11 matching lines...) Expand all
41 #define NO_SANITIZE_ADDRESS 39 #define NO_SANITIZE_ADDRESS
42 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS 40 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS
43 #endif 41 #endif
44 42
45 #if defined(MEMORY_SANITIZER) && (!OS(WIN) || COMPILER(CLANG)) 43 #if defined(MEMORY_SANITIZER) && (!OS(WIN) || COMPILER(CLANG))
46 #define NO_SANITIZE_MEMORY __attribute__((no_sanitize_memory)) 44 #define NO_SANITIZE_MEMORY __attribute__((no_sanitize_memory))
47 #else 45 #else
48 #define NO_SANITIZE_MEMORY 46 #define NO_SANITIZE_MEMORY
49 #endif 47 #endif
50 48
51 #endif // WTF_AddressSanitizer_h 49 #endif // WTF_AddressSanitizer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/ASCIICTypeTest.cpp ('k') | third_party/WebKit/Source/wtf/AddressSpaceRandomization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698