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

Side by Side Diff: tools/gn/label_ptr.h

Issue 1549203002: Switch to standard integer types in tools/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « tools/gn/label_pattern_unittest.cc ('k') | tools/gn/label_unittest.cc » ('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) 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 #ifndef TOOLS_GN_LABEL_PTR_H_ 5 #ifndef TOOLS_GN_LABEL_PTR_H_
6 #define TOOLS_GN_LABEL_PTR_H_ 6 #define TOOLS_GN_LABEL_PTR_H_
7 7
8 #include <stddef.h>
9
8 #include <functional> 10 #include <functional>
9 11
10 #include "tools/gn/label.h" 12 #include "tools/gn/label.h"
11 13
12 class Config; 14 class Config;
13 class ParseNode; 15 class ParseNode;
14 class Target; 16 class Target;
15 17
16 // Structure that holds a labeled "thing". This is used for various places 18 // Structure that holds a labeled "thing". This is used for various places
17 // where we need to store lists of targets or configs. We sometimes populate 19 // where we need to store lists of targets or configs. We sometimes populate
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 template<typename T> struct hash< LabelPtrPair<T> > { 110 template<typename T> struct hash< LabelPtrPair<T> > {
109 std::size_t operator()(const LabelPtrPair<T>& v) const { 111 std::size_t operator()(const LabelPtrPair<T>& v) const {
110 BASE_HASH_NAMESPACE::hash<Label> h; 112 BASE_HASH_NAMESPACE::hash<Label> h;
111 return h(v.label); 113 return h(v.label);
112 } 114 }
113 }; 115 };
114 116
115 } // namespace BASE_HASH_NAMESPACE 117 } // namespace BASE_HASH_NAMESPACE
116 118
117 #endif // TOOLS_GN_LABEL_PTR_H_ 119 #endif // TOOLS_GN_LABEL_PTR_H_
OLDNEW
« no previous file with comments | « tools/gn/label_pattern_unittest.cc ('k') | tools/gn/label_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698