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

Side by Side Diff: runtime/platform/address_sanitizer.h

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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
« no previous file with comments | « runtime/lib/weak_property.cc ('k') | runtime/platform/allocation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_PLATFORM_ADDRESS_SANITIZER_H_ 5 #ifndef RUNTIME_PLATFORM_ADDRESS_SANITIZER_H_
6 #define RUNTIME_PLATFORM_ADDRESS_SANITIZER_H_ 6 #define RUNTIME_PLATFORM_ADDRESS_SANITIZER_H_
7 7
8 #include "platform/globals.h" 8 #include "platform/globals.h"
9 9
10 // Allow the use of ASan (AddressSanitizer). This is needed as ASan needs to be 10 // Allow the use of ASan (AddressSanitizer). This is needed as ASan needs to be
(...skipping 14 matching lines...) Expand all
25 do { \ 25 do { \
26 } while (false && (ptr) == 0 && (len) == 0) 26 } while (false && (ptr) == 0 && (len) == 0)
27 #define LSAN_REGISTER_ROOT_REGION(ptr, len) \ 27 #define LSAN_REGISTER_ROOT_REGION(ptr, len) \
28 do { \ 28 do { \
29 } while (false && (ptr) == 0 && (len) == 0) 29 } while (false && (ptr) == 0 && (len) == 0)
30 #define LSAN_UNREGISTER_ROOT_REGION(ptr, len) \ 30 #define LSAN_UNREGISTER_ROOT_REGION(ptr, len) \
31 do { \ 31 do { \
32 } while (false && (ptr) == 0 && (len) == 0) 32 } while (false && (ptr) == 0 && (len) == 0)
33 #endif // __has_feature(address_sanitizer) 33 #endif // __has_feature(address_sanitizer)
34 34
35 #else // defined(__has_feature) 35 #else // defined(__has_feature)
36 36
37 #define ASAN_UNPOISON(ptr, len) \ 37 #define ASAN_UNPOISON(ptr, len) \
38 do { \ 38 do { \
39 } while (false && (ptr) == 0 && (len) == 0) 39 } while (false && (ptr) == 0 && (len) == 0)
40 #define LSAN_REGISTER_ROOT_REGION(ptr, len) \ 40 #define LSAN_REGISTER_ROOT_REGION(ptr, len) \
41 do { \ 41 do { \
42 } while (false && (ptr) == 0 && (len) == 0) 42 } while (false && (ptr) == 0 && (len) == 0)
43 #define LSAN_UNREGISTER_ROOT_REGION(ptr, len) \ 43 #define LSAN_UNREGISTER_ROOT_REGION(ptr, len) \
44 do { \ 44 do { \
45 } while (false && (ptr) == 0 && (len) == 0) 45 } while (false && (ptr) == 0 && (len) == 0)
46 46
47 #endif // defined(__has_feature) 47 #endif // defined(__has_feature)
48 48
49 #endif // RUNTIME_PLATFORM_ADDRESS_SANITIZER_H_ 49 #endif // RUNTIME_PLATFORM_ADDRESS_SANITIZER_H_
OLDNEW
« no previous file with comments | « runtime/lib/weak_property.cc ('k') | runtime/platform/allocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698