34 lines
1.5 KiB
Diff
34 lines
1.5 KiB
Diff
From 08ac7188f414218ac9d764e29e7aa64a6bfc2f96 Mon Sep 17 00:00:00 2001
|
|
From: Stephan Hartmann <stha09@googlemail.com>
|
|
Date: Sun, 31 May 2020 10:02:03 +0000
|
|
Subject: [PATCH] disable clang-format for generated code in blink
|
|
|
|
For GCC builds clang-format might be not available. Additionally,
|
|
current scripts look for clang-format within chromium sources and
|
|
don't consider system clang-format.
|
|
---
|
|
.../bindings/scripts/bind_gen/codegen_utils.py | 10 +---------
|
|
1 file changed, 1 insertion(+), 9 deletions(-)
|
|
|
|
diff --git a/third_party/blink/renderer/bindings/scripts/bind_gen/codegen_utils.py b/third_party/blink/renderer/bindings/scripts/bind_gen/codegen_utils.py
|
|
index 7021f1a..33bf5bf 100644
|
|
--- a/third_party/blink/renderer/bindings/scripts/bind_gen/codegen_utils.py
|
|
+++ b/third_party/blink/renderer/bindings/scripts/bind_gen/codegen_utils.py
|
|
@@ -150,12 +150,4 @@ def write_code_node_to_file(code_node, filepath):
|
|
|
|
rendered_text = render_code_node(code_node)
|
|
|
|
- format_result = style_format.auto_format(rendered_text, filename=filepath)
|
|
- if not format_result.did_succeed:
|
|
- raise RuntimeError("Style-formatting failed: filename = {filename}\n"
|
|
- "---- stderr ----\n"
|
|
- "{stderr}:".format(
|
|
- filename=format_result.filename,
|
|
- stderr=format_result.error_message))
|
|
-
|
|
- web_idl.file_io.write_to_file_if_changed(filepath, format_result.contents)
|
|
+ web_idl.file_io.write_to_file_if_changed(filepath, rendered_text)
|
|
--
|
|
2.26.2
|
|
|