Standardize "DO NOT EDIT" comments in generated files.

PiperOrigin-RevId: 919718422
Change-Id: I2cba07d75d37d45f3f30b23d049c944b080248ad
This commit is contained in:
Yuval Tassa
2026-05-22 09:34:16 -07:00
committed by Copybara-Service
parent 8469198ba5
commit ab0e0091d5
36 changed files with 79 additions and 3 deletions
+6 -1
View File
@@ -62,7 +62,12 @@ class BindingBuilder:
self.content_cc = common.replace_lines_containing_marker(
self.content_cc, marker, content
)
return "".join(self.content_cc)
text = "".join(self.content_cc)
return text.replace(
"// limitations under the License.\n\n",
"// limitations under the License.\n\n// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.\n\n",
1,
)
def build(self, generated_path_cc: str):
common.write_to_file(generated_path_cc, self.to_string())