summaryrefslogtreecommitdiff
path: root/chromium/tools/gn/config_values_extractors.cc
blob: 96b514aae06ae2013a31a739ebf6dc108fbb3f6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "tools/gn/config_values_extractors.h"

namespace {

struct StringWriter {
  void operator()(const std::string& s, std::ostream& out) const {
    out << " " << s;
  }
};

}  // namespace

void RecursiveTargetConfigStringsToStream(
    const Target* target,
    const std::vector<std::string>& (ConfigValues::* getter)() const,
    std::ostream& out) {
  RecursiveTargetConfigToStream(target, getter, StringWriter(), out);
}