• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 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 #ifndef TOOLS_GN_OUTPUT_CONVERSION_H_
6 #define TOOLS_GN_OUTPUT_CONVERSION_H_
7 
8 #include <iosfwd>
9 #include <string>
10 
11 class Err;
12 class Settings;
13 class Value;
14 
15 // Converts the given input Value to an output string (to be written to a file).
16 // Conversions as specified in the output_conversion string will be performed.
17 // The given ostream will be used for writing the resulting string.
18 //
19 // If the conversion string is invalid, the error will be set.
20 void ConvertValueToOutput(const Settings* settings,
21                           const Value& output,
22                           const Value& output_conversion_value,
23                           std::ostream& out,
24                           Err* err);
25 
26 #endif  // TOOLS_GN_OUTPUT_CONVERSION_H_
27