OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "tools/gn/config_values_extractors.h" |
| 6 |
| 7 namespace { |
| 8 |
| 9 struct StringWriter { |
| 10 void operator()(const std::string& s, std::ostream& out) const { |
| 11 out << " " << s; |
| 12 } |
| 13 }; |
| 14 |
| 15 } // namespace |
| 16 |
| 17 void RecursiveTargetConfigStringsToStream( |
| 18 const Target* target, |
| 19 const std::vector<std::string>& (ConfigValues::* getter)() const, |
| 20 std::ostream& out) { |
| 21 RecursiveTargetConfigToStream(target, getter, StringWriter(), out); |
| 22 } |
OLD | NEW |