Chromium Code Reviews| Index: tools/gn/args.h |
| diff --git a/tools/gn/args.h b/tools/gn/args.h |
| index d3225ca1d7f3e55ff660b23e04c6ec5d3b9ba23c..5abc127d5fcaf36ad48ce3feb24a669a45eb333e 100644 |
| --- a/tools/gn/args.h |
| +++ b/tools/gn/args.h |
| @@ -23,10 +23,12 @@ extern const char kBuildArgs_Help[]; |
| class Args { |
| public: |
| Args(); |
| + Args(const Args& other); |
| ~Args(); |
| // Specifies overrides of the build arguments. These are normally specified |
| // on the command line. |
| + void AddArgOverride(const char* name, const Value& value); |
| void AddArgOverrides(const Scope::KeyValueMap& overrides); |
| // Sets up the root scope for a toolchain. This applies the default system |
| @@ -82,7 +84,7 @@ class Args { |
| // the user set variables on the command line that are not used anywhere. |
| mutable Scope::KeyValueMap declared_arguments_; |
| - DISALLOW_COPY_AND_ASSIGN(Args); |
| + Args& operator=(const Args& other); // Disallow assignment. |
|
scottmg
2013/10/15 19:58:21
I'm assuming somewhere says you shouldn't do this
brettw
2013/10/15 21:18:06
Yes, Google style says you should do disallow copy
scottmg
2013/10/15 21:19:54
Yes, that's what I meant. It seems like you should
|
| }; |
| #endif // TOOLS_GN_ARGS_H_ |