Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: tools/gn/input_conversion.h

Issue 223783005: Add support for reading .gypi files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/gn/functions_unittest.cc ('k') | tools/gn/input_conversion.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef TOOLS_GN_INPUT_CONVERSION_H_ 5 #ifndef TOOLS_GN_INPUT_CONVERSION_H_
6 #define TOOLS_GN_INPUT_CONVERSION_H_ 6 #define TOOLS_GN_INPUT_CONVERSION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class Err; 10 class Err;
11 class ParseNode; 11 class ParseNode;
12 class Settings;
12 class Value; 13 class Value;
13 14
14 extern const char kInputConversion_Help[]; 15 extern const char kInputConversion_Help[];
15 16
16 // Converts the given input string (is read from a file or output from a 17 // Converts the given input string (is read from a file or output from a
17 // script) to a Value. Conversions as specified in the input_conversion string 18 // script) to a Value. Conversions as specified in the input_conversion string
18 // will be performed. The given origin will be used for constructing the 19 // will be performed. The given origin will be used for constructing the
19 // resulting Value. 20 // resulting Value.
20 // 21 //
21 // If the conversion string is invalid, the error will be set and an empty 22 // If the conversion string is invalid, the error will be set and an empty
22 // value will be returned. 23 // value will be returned.
23 Value ConvertInputToValue(const std::string& input, 24 Value ConvertInputToValue(const Settings* settings,
25 const std::string& input,
24 const ParseNode* origin, 26 const ParseNode* origin,
25 const Value& input_conversion_value, 27 const Value& input_conversion_value,
26 Err* err); 28 Err* err);
27 29
28 #endif // TOOLS_GN_INPUT_CONVERSION_H_ 30 #endif // TOOLS_GN_INPUT_CONVERSION_H_
OLDNEW
« no previous file with comments | « tools/gn/functions_unittest.cc ('k') | tools/gn/input_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698