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

Side by Side Diff: tools/clang/plugins/tests/weak_ptr_factory.h

Issue 26303002: Make Clang plugin check WeakPtrFactory member order (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up for review Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "base/process/memory.h" 5 #ifndef WEAK_PTR_FACTORY_H_
6 #define WEAK_PTR_FACTORY_H_
6 7
7 namespace base { 8 namespace base {
8 9
9 void EnableTerminationOnOutOfMemory() { 10 template <typename T>
10 } 11 class WeakPtrFactory {
11 12 public:
12 void EnableTerminationOnHeapCorruption() { 13 explicit WeakPtrFactory(T*) {}
13 } 14 };
14
15 bool AdjustOOMScore(ProcessId process, int score) {
16 return false;
17 }
18 15
19 } // namespace base 16 } // namespace base
17
18 #endif // WEAK_PTR_FACTORY_H_
OLDNEW
« no previous file with comments | « tools/clang/plugins/FindBadConstructs.cpp ('k') | tools/clang/plugins/tests/weak_ptr_factory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698