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

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

Issue 1621053002: Add an assert_no_deps variable to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment fix Created 4 years, 10 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
« no previous file with comments | « tools/gn/target_unittest.cc ('k') | tools/gn/value_extractors.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_VALUE_EXTRACTORS_H_ 5 #ifndef TOOLS_GN_VALUE_EXTRACTORS_H_
6 #define TOOLS_GN_VALUE_EXTRACTORS_H_ 6 #define TOOLS_GN_VALUE_EXTRACTORS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "tools/gn/label_ptr.h" 11 #include "tools/gn/label_ptr.h"
12 #include "tools/gn/lib_file.h" 12 #include "tools/gn/lib_file.h"
13 #include "tools/gn/unique_vector.h" 13 #include "tools/gn/unique_vector.h"
14 14
15 class BuildSettings; 15 class BuildSettings;
16 class Err; 16 class Err;
17 class Label; 17 class Label;
18 class LabelPattern;
18 class SourceDir; 19 class SourceDir;
19 class SourceFile; 20 class SourceFile;
20 class Value; 21 class Value;
21 22
22 // On failure, returns false and sets the error. 23 // On failure, returns false and sets the error.
23 bool ExtractListOfStringValues(const Value& value, 24 bool ExtractListOfStringValues(const Value& value,
24 std::vector<std::string>* dest, 25 std::vector<std::string>* dest,
25 Err* err); 26 Err* err);
26 27
27 // Looks for a list of source files relative to a given current dir. 28 // Looks for a list of source files relative to a given current dir.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const Label& current_toolchain, 74 const Label& current_toolchain,
74 UniqueVector<LabelTargetPair>* dest, 75 UniqueVector<LabelTargetPair>* dest,
75 Err* err); 76 Err* err);
76 77
77 bool ExtractRelativeFile(const BuildSettings* build_settings, 78 bool ExtractRelativeFile(const BuildSettings* build_settings,
78 const Value& value, 79 const Value& value,
79 const SourceDir& current_dir, 80 const SourceDir& current_dir,
80 SourceFile* file, 81 SourceFile* file,
81 Err* err); 82 Err* err);
82 83
84 bool ExtractListOfLabelPatterns(const Value& value,
85 const SourceDir& current_dir,
86 std::vector<LabelPattern>* patterns,
87 Err* err);
88
83 #endif // TOOLS_GN_VALUE_EXTRACTORS_H_ 89 #endif // TOOLS_GN_VALUE_EXTRACTORS_H_
OLDNEW
« no previous file with comments | « tools/gn/target_unittest.cc ('k') | tools/gn/value_extractors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698