OLD | NEW |
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_H_ | 5 #ifndef TOOLS_GN_LABEL_H_ |
6 #define TOOLS_GN_LABEL_H_ | 6 #define TOOLS_GN_LABEL_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
9 #include "tools/gn/source_dir.h" | 11 #include "tools/gn/source_dir.h" |
10 | 12 |
11 class Err; | 13 class Err; |
12 class Value; | 14 class Value; |
13 | 15 |
14 // A label represents the name of a target or some other named thing in | 16 // A label represents the name of a target or some other named thing in |
15 // the source path. The label is always absolute and always includes a name | 17 // the source path. The label is always absolute and always includes a name |
16 // part, so it starts with a slash, and has one colon. | 18 // part, so it starts with a slash, and has one colon. |
17 class Label { | 19 class Label { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 116 } |
115 }; | 117 }; |
116 | 118 |
117 } // namespace BASE_HASH_NAMESPACE | 119 } // namespace BASE_HASH_NAMESPACE |
118 | 120 |
119 inline void swap(Label& lhs, Label& rhs) { | 121 inline void swap(Label& lhs, Label& rhs) { |
120 lhs.swap(rhs); | 122 lhs.swap(rhs); |
121 } | 123 } |
122 | 124 |
123 #endif // TOOLS_GN_LABEL_H_ | 125 #endif // TOOLS_GN_LABEL_H_ |
OLD | NEW |