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

Side by Side Diff: base/debug/leak_annotations.h

Issue 1549043002: Switch to standard integer types in base/debug/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « base/debug/gdi_debug_util_win.cc ('k') | base/debug/leak_tracker.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 BASE_DEBUG_LEAK_ANNOTATIONS_H_ 5 #ifndef BASE_DEBUG_LEAK_ANNOTATIONS_H_
6 #define BASE_DEBUG_LEAK_ANNOTATIONS_H_ 6 #define BASE_DEBUG_LEAK_ANNOTATIONS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/macros.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 // This file defines macros which can be used to annotate intentional memory 11 // This file defines macros which can be used to annotate intentional memory
12 // leaks. Support for annotations is implemented in LeakSanitizer. Annotated 12 // leaks. Support for annotations is implemented in LeakSanitizer. Annotated
13 // objects will be treated as a source of live pointers, i.e. any heap objects 13 // objects will be treated as a source of live pointers, i.e. any heap objects
14 // reachable by following pointers from an annotated object will not be 14 // reachable by following pointers from an annotated object will not be
15 // reported as leaks. 15 // reported as leaks.
16 // 16 //
17 // ANNOTATE_SCOPED_MEMORY_LEAK: all allocations made in the current scope 17 // ANNOTATE_SCOPED_MEMORY_LEAK: all allocations made in the current scope
18 // will be annotated as leaks. 18 // will be annotated as leaks.
(...skipping 18 matching lines...) Expand all
37 #define ANNOTATE_LEAKING_OBJECT_PTR(X) __lsan_ignore_object(X); 37 #define ANNOTATE_LEAKING_OBJECT_PTR(X) __lsan_ignore_object(X);
38 38
39 #else 39 #else
40 40
41 #define ANNOTATE_SCOPED_MEMORY_LEAK ((void)0) 41 #define ANNOTATE_SCOPED_MEMORY_LEAK ((void)0)
42 #define ANNOTATE_LEAKING_OBJECT_PTR(X) ((void)0) 42 #define ANNOTATE_LEAKING_OBJECT_PTR(X) ((void)0)
43 43
44 #endif 44 #endif
45 45
46 #endif // BASE_DEBUG_LEAK_ANNOTATIONS_H_ 46 #endif // BASE_DEBUG_LEAK_ANNOTATIONS_H_
OLDNEW
« no previous file with comments | « base/debug/gdi_debug_util_win.cc ('k') | base/debug/leak_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698