summaryrefslogtreecommitdiff
path: root/chromium/tools/gn/command_format.h
blob: 97c3e4ca6f81bc911f499266f595a877e78d5170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2016 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.

#ifndef TOOLS_GN_COMAND_FORMAT_H_
#define TOOLS_GN_COMAND_FORMAT_H_

#include <string>

class Setup;
class SourceFile;

namespace commands {

bool FormatFileToString(Setup* setup,
                        const SourceFile& file,
                        bool dump_tree,
                        std::string* output);

bool FormatStringToString(const std::string& input,
                          bool dump_tree,
                          std::string* output);

}  // namespace commands

#endif  // TOOLS_GN_COMAND_FORMAT_H_