Commit ed58f066 by Jamie Madill

Fix the renderer generation script.

We no longer use the DISALLOW_COPY_AND_ASSIGN macro. BUG=angleproject:956 Change-Id: I439c4d55612059d6a16ae6351c54c3817be017cf Reviewed-on: https://chromium-review.googlesource.com/263480Reviewed-by: 's avatarBrandon Jones <bajones@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 68694e99
...@@ -70,10 +70,7 @@ class $TypedImpl : public $BaseImpl ...@@ -70,10 +70,7 @@ class $TypedImpl : public $BaseImpl
public: public:
$TypedImpl($ConstructorParams); $TypedImpl($ConstructorParams);
~$TypedImpl() override; ~$TypedImpl() override;
$ImplMethodDeclarations $ImplMethodDeclarations$PrivateImplMethodDeclarations};
private:
DISALLOW_COPY_AND_ASSIGN($TypedImpl);
$PrivateImplMethodDeclarations};
} }
...@@ -175,7 +172,7 @@ def parse_impl_header(base_impl): ...@@ -175,7 +172,7 @@ def parse_impl_header(base_impl):
if '~' + base_impl in clean_line: if '~' + base_impl in clean_line:
copy = True copy = True
copy_private = False copy_private = False
elif 'DISALLOW_COPY_AND_ASSIGN' in clean_line: elif 'private:' in clean_line:
copy = False copy = False
copy_private = True copy_private = True
elif ';' in clean_line and ' = 0' not in clean_line: elif ';' in clean_line and ' = 0' not in clean_line:
...@@ -239,6 +236,9 @@ for impl_class in impl_classes: ...@@ -239,6 +236,9 @@ for impl_class in impl_classes:
constructor_params, base_constructor_args = get_constructor_args(constructor) constructor_params, base_constructor_args = get_constructor_args(constructor)
if private_impl_method_declarations:
private_impl_method_declarations = "\n private:\n" + private_impl_method_declarations
substitutions = { substitutions = {
'BaseImpl': base_impl, 'BaseImpl': base_impl,
'TypedImpl': typed_impl, 'TypedImpl': typed_impl,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment