Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 Err* err); | 38 Err* err); |
| 39 | 39 |
| 40 // Extracts the list of labels and their origins to the given vector. Only the | 40 // Extracts the list of labels and their origins to the given vector. Only the |
| 41 // labels are filled in, the ptr for each pair in the vector will be null. | 41 // labels are filled in, the ptr for each pair in the vector will be null. |
| 42 bool ExtractListOfLabels(const Value& value, | 42 bool ExtractListOfLabels(const Value& value, |
| 43 const SourceDir& current_dir, | 43 const SourceDir& current_dir, |
| 44 const Label& current_toolchain, | 44 const Label& current_toolchain, |
| 45 LabelTargetVector* dest, | 45 LabelTargetVector* dest, |
| 46 Err* err); | 46 Err* err); |
| 47 | 47 |
| 48 // Extracts the list of labels and their origins to the given vector. Only the | 48 // Extracts the list of labels and their origins to the given vector. For the |
| 49 // labels are filled in, the ptr for each pair in the vector will be null. Sets | 49 // version taking Label*Ptrs, only the labels are filled in, the ptr for each |
|
viettrungluu
2014/08/28 19:47:54
s/Ptr/Pair/ ?
| |
| 50 // an error and returns false if a label is maformed or there are duplicates. | 50 // pair in the vector will be null. Sets an error and returns false if a label |
| 51 // is maformed or there are duplicates. | |
| 51 bool ExtractListOfUniqueLabels(const Value& value, | 52 bool ExtractListOfUniqueLabels(const Value& value, |
| 52 const SourceDir& current_dir, | 53 const SourceDir& current_dir, |
| 53 const Label& current_toolchain, | 54 const Label& current_toolchain, |
| 55 UniqueVector<Label>* dest, | |
| 56 Err* err); | |
| 57 bool ExtractListOfUniqueLabels(const Value& value, | |
| 58 const SourceDir& current_dir, | |
| 59 const Label& current_toolchain, | |
| 54 UniqueVector<LabelConfigPair>* dest, | 60 UniqueVector<LabelConfigPair>* dest, |
| 55 Err* err); | 61 Err* err); |
| 56 bool ExtractListOfUniqueLabels(const Value& value, | 62 bool ExtractListOfUniqueLabels(const Value& value, |
| 57 const SourceDir& current_dir, | 63 const SourceDir& current_dir, |
| 58 const Label& current_toolchain, | 64 const Label& current_toolchain, |
| 59 UniqueVector<LabelTargetPair>* dest, | 65 UniqueVector<LabelTargetPair>* dest, |
| 60 Err* err); | 66 Err* err); |
| 61 | 67 |
| 62 bool ExtractRelativeFile(const BuildSettings* build_settings, | 68 bool ExtractRelativeFile(const BuildSettings* build_settings, |
| 63 const Value& value, | 69 const Value& value, |
| 64 const SourceDir& current_dir, | 70 const SourceDir& current_dir, |
| 65 SourceFile* file, | 71 SourceFile* file, |
| 66 Err* err); | 72 Err* err); |
| 67 | 73 |
| 68 #endif // TOOLS_GN_VALUE_EXTRACTORS_H_ | 74 #endif // TOOLS_GN_VALUE_EXTRACTORS_H_ |
| OLD | NEW |