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
+3
View File
@@ -1,3 +1,6 @@
..
DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
.. raw:: html .. raw:: html
<div class="schema-controls" style="margin-bottom: 1em;"> <div class="schema-controls" style="margin-bottom: 1em;">
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_ACTUATOR_H #ifndef MJCPHYSICS_GENERATED_ACTUATOR_H
#define MJCPHYSICS_GENERATED_ACTUATOR_H #define MJCPHYSICS_GENERATED_ACTUATOR_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_API_H #ifndef MJCPHYSICS_API_H
#define MJCPHYSICS_API_H #define MJCPHYSICS_API_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_COLLISIONAPI_H #ifndef MJCPHYSICS_GENERATED_COLLISIONAPI_H
#define MJCPHYSICS_GENERATED_COLLISIONAPI_H #define MJCPHYSICS_GENERATED_COLLISIONAPI_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_EQUALITYAPI_H #ifndef MJCPHYSICS_GENERATED_EQUALITYAPI_H
#define MJCPHYSICS_GENERATED_EQUALITYAPI_H #define MJCPHYSICS_GENERATED_EQUALITYAPI_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_EQUALITYCONNECTAPI_H #ifndef MJCPHYSICS_GENERATED_EQUALITYCONNECTAPI_H
#define MJCPHYSICS_GENERATED_EQUALITYCONNECTAPI_H #define MJCPHYSICS_GENERATED_EQUALITYCONNECTAPI_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_EQUALITYJOINTAPI_H #ifndef MJCPHYSICS_GENERATED_EQUALITYJOINTAPI_H
#define MJCPHYSICS_GENERATED_EQUALITYJOINTAPI_H #define MJCPHYSICS_GENERATED_EQUALITYJOINTAPI_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_EQUALITYWELDAPI_H #ifndef MJCPHYSICS_GENERATED_EQUALITYWELDAPI_H
#define MJCPHYSICS_GENERATED_EQUALITYWELDAPI_H #define MJCPHYSICS_GENERATED_EQUALITYWELDAPI_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_IMAGEABLEAPI_H #ifndef MJCPHYSICS_GENERATED_IMAGEABLEAPI_H
#define MJCPHYSICS_GENERATED_IMAGEABLEAPI_H #define MJCPHYSICS_GENERATED_IMAGEABLEAPI_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_JOINTAPI_H #ifndef MJCPHYSICS_GENERATED_JOINTAPI_H
#define MJCPHYSICS_GENERATED_JOINTAPI_H #define MJCPHYSICS_GENERATED_JOINTAPI_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_KEYFRAME_H #ifndef MJCPHYSICS_GENERATED_KEYFRAME_H
#define MJCPHYSICS_GENERATED_KEYFRAME_H #define MJCPHYSICS_GENERATED_KEYFRAME_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_MATERIALAPI_H #ifndef MJCPHYSICS_GENERATED_MATERIALAPI_H
#define MJCPHYSICS_GENERATED_MATERIALAPI_H #define MJCPHYSICS_GENERATED_MATERIALAPI_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_MESHCOLLISIONAPI_H #ifndef MJCPHYSICS_GENERATED_MESHCOLLISIONAPI_H
#define MJCPHYSICS_GENERATED_MESHCOLLISIONAPI_H #define MJCPHYSICS_GENERATED_MESHCOLLISIONAPI_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_SCENEAPI_H #ifndef MJCPHYSICS_GENERATED_SCENEAPI_H
#define MJCPHYSICS_GENERATED_SCENEAPI_H #define MJCPHYSICS_GENERATED_SCENEAPI_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_SITEAPI_H #ifndef MJCPHYSICS_GENERATED_SITEAPI_H
#define MJCPHYSICS_GENERATED_SITEAPI_H #define MJCPHYSICS_GENERATED_SITEAPI_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_GENERATED_TENDON_H #ifndef MJCPHYSICS_GENERATED_TENDON_H
#define MJCPHYSICS_GENERATED_TENDON_H #define MJCPHYSICS_GENERATED_TENDON_H
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#ifndef MJCPHYSICS_TOKENS_H #ifndef MJCPHYSICS_TOKENS_H
#define MJCPHYSICS_TOKENS_H #define MJCPHYSICS_TOKENS_H
@@ -438,7 +438,9 @@ _COPYRIGHT_HEADER = """// Copyright 2022 DeepMind Technologies Limited
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// ============================================================================== // ==============================================================================
// THIS FILE IS AUTO-GENERATED
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
""" """
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/actuator.h> #include <mujoco/experimental/usd/mjcPhysics/actuator.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/collisionAPI.h> #include <mujoco/experimental/usd/mjcPhysics/collisionAPI.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/equalityAPI.h> #include <mujoco/experimental/usd/mjcPhysics/equalityAPI.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/equalityConnectAPI.h> #include <mujoco/experimental/usd/mjcPhysics/equalityConnectAPI.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/equalityJointAPI.h> #include <mujoco/experimental/usd/mjcPhysics/equalityJointAPI.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/equalityWeldAPI.h> #include <mujoco/experimental/usd/mjcPhysics/equalityWeldAPI.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/imageableAPI.h> #include <mujoco/experimental/usd/mjcPhysics/imageableAPI.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/jointAPI.h> #include <mujoco/experimental/usd/mjcPhysics/jointAPI.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/keyframe.h> #include <mujoco/experimental/usd/mjcPhysics/keyframe.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/materialAPI.h> #include <mujoco/experimental/usd/mjcPhysics/materialAPI.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h> #include <mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/sceneAPI.h> #include <mujoco/experimental/usd/mjcPhysics/sceneAPI.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/siteAPI.h> #include <mujoco/experimental/usd/mjcPhysics/siteAPI.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/tendon.h> #include <mujoco/experimental/usd/mjcPhysics/tendon.h>
#include <pxr/usd/sdf/assetPath.h> #include <pxr/usd/sdf/assetPath.h>
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
#include <mujoco/experimental/usd/mjcPhysics/tokens.h> #include <mujoco/experimental/usd/mjcPhysics/tokens.h>
PXR_NAMESPACE_OPEN_SCOPE PXR_NAMESPACE_OPEN_SCOPE
+3 -1
View File
@@ -12,7 +12,9 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// ============================================================================== // ==============================================================================
// THIS FILE IS AUTO-GENERATED
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text; using System.Text;
+2
View File
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
// NOLINTBEGIN(whitespace/line_length) // NOLINTBEGIN(whitespace/line_length)
// NOLINTBEGIN(whitespace/semicolon) // NOLINTBEGIN(whitespace/semicolon)
+6 -1
View File
@@ -62,7 +62,12 @@ class BindingBuilder:
self.content_cc = common.replace_lines_containing_marker( self.content_cc = common.replace_lines_containing_marker(
self.content_cc, marker, content 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): def build(self, generated_path_cc: str):
common.write_to_file(generated_path_cc, self.to_string()) common.write_to_file(generated_path_cc, self.to_string())