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 #include "tools/gn/builder.h" | 5 #include "tools/gn/builder.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "tools/gn/config.h" | 9 #include "tools/gn/config.h" |
8 #include "tools/gn/deps_iterator.h" | 10 #include "tools/gn/deps_iterator.h" |
9 #include "tools/gn/err.h" | 11 #include "tools/gn/err.h" |
10 #include "tools/gn/loader.h" | 12 #include "tools/gn/loader.h" |
11 #include "tools/gn/scheduler.h" | 13 #include "tools/gn/scheduler.h" |
12 #include "tools/gn/settings.h" | 14 #include "tools/gn/settings.h" |
13 #include "tools/gn/target.h" | 15 #include "tools/gn/target.h" |
14 #include "tools/gn/trace.h" | 16 #include "tools/gn/trace.h" |
15 | 17 |
16 namespace { | 18 namespace { |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 std::string ret; | 505 std::string ret; |
504 for (size_t i = 0; i < cycle.size(); i++) { | 506 for (size_t i = 0; i < cycle.size(); i++) { |
505 ret += " " + cycle[i]->label().GetUserVisibleName(false); | 507 ret += " " + cycle[i]->label().GetUserVisibleName(false); |
506 if (i != cycle.size() - 1) | 508 if (i != cycle.size() - 1) |
507 ret += " ->"; | 509 ret += " ->"; |
508 ret += "\n"; | 510 ret += "\n"; |
509 } | 511 } |
510 | 512 |
511 return ret; | 513 return ret; |
512 } | 514 } |
OLD | NEW |