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

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

Issue 1728303003: tools/gn: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SUBSTITUTION_LIST_H_ 5 #ifndef TOOLS_GN_SUBSTITUTION_LIST_H_
6 #define TOOLS_GN_SUBSTITUTION_LIST_H_ 6 #define TOOLS_GN_SUBSTITUTION_LIST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "tools/gn/substitution_pattern.h" 11 #include "tools/gn/substitution_pattern.h"
12 12
13 // Represents a list of strings with {{substitution_patterns}} in them. 13 // Represents a list of strings with {{substitution_patterns}} in them.
14 class SubstitutionList { 14 class SubstitutionList {
15 public: 15 public:
16 SubstitutionList(); 16 SubstitutionList();
17 SubstitutionList(const SubstitutionList& other);
17 ~SubstitutionList(); 18 ~SubstitutionList();
18 19
19 bool Parse(const Value& value, Err* err); 20 bool Parse(const Value& value, Err* err);
20 bool Parse(const std::vector<std::string>& values, 21 bool Parse(const std::vector<std::string>& values,
21 const ParseNode* origin, 22 const ParseNode* origin,
22 Err* err); 23 Err* err);
23 24
24 // Makes a SubstitutionList from the given hardcoded patterns. 25 // Makes a SubstitutionList from the given hardcoded patterns.
25 static SubstitutionList MakeForTest( 26 static SubstitutionList MakeForTest(
26 const char* a, 27 const char* a,
(...skipping 10 matching lines...) Expand all
37 38
38 void FillRequiredTypes(SubstitutionBits* bits) const; 39 void FillRequiredTypes(SubstitutionBits* bits) const;
39 40
40 private: 41 private:
41 std::vector<SubstitutionPattern> list_; 42 std::vector<SubstitutionPattern> list_;
42 43
43 std::vector<SubstitutionType> required_types_; 44 std::vector<SubstitutionType> required_types_;
44 }; 45 };
45 46
46 #endif // TOOLS_GN_SUBSTITUTION_LIST_H_ 47 #endif // TOOLS_GN_SUBSTITUTION_LIST_H_
OLDNEW
« tools/gn/label.h ('K') | « tools/gn/pattern.cc ('k') | tools/gn/substitution_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698