Standardize "DO NOT EDIT" comments in generated files.
PiperOrigin-RevId: 919718422 Change-Id: I2cba07d75d37d45f3f30b23d049c944b080248ad
This commit is contained in:
committed by
Copybara-Service
parent
8469198ba5
commit
ab0e0091d5
@@ -1,3 +1,6 @@
|
||||
..
|
||||
DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
.. raw:: html
|
||||
|
||||
<div class="schema-controls" style="margin-bottom: 1em;">
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_ACTUATOR_H
|
||||
#define MJCPHYSICS_GENERATED_ACTUATOR_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_API_H
|
||||
#define MJCPHYSICS_API_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_COLLISIONAPI_H
|
||||
#define MJCPHYSICS_GENERATED_COLLISIONAPI_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_EQUALITYAPI_H
|
||||
#define MJCPHYSICS_GENERATED_EQUALITYAPI_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_EQUALITYCONNECTAPI_H
|
||||
#define MJCPHYSICS_GENERATED_EQUALITYCONNECTAPI_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_EQUALITYJOINTAPI_H
|
||||
#define MJCPHYSICS_GENERATED_EQUALITYJOINTAPI_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_EQUALITYWELDAPI_H
|
||||
#define MJCPHYSICS_GENERATED_EQUALITYWELDAPI_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_IMAGEABLEAPI_H
|
||||
#define MJCPHYSICS_GENERATED_IMAGEABLEAPI_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_JOINTAPI_H
|
||||
#define MJCPHYSICS_GENERATED_JOINTAPI_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_KEYFRAME_H
|
||||
#define MJCPHYSICS_GENERATED_KEYFRAME_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_MATERIALAPI_H
|
||||
#define MJCPHYSICS_GENERATED_MATERIALAPI_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_MESHCOLLISIONAPI_H
|
||||
#define MJCPHYSICS_GENERATED_MESHCOLLISIONAPI_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_SCENEAPI_H
|
||||
#define MJCPHYSICS_GENERATED_SCENEAPI_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_SITEAPI_H
|
||||
#define MJCPHYSICS_GENERATED_SITEAPI_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef MJCPHYSICS_GENERATED_TENDON_H
|
||||
#define MJCPHYSICS_GENERATED_TENDON_H
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#ifndef 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
|
||||
// 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
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/actuator.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/collisionAPI.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/equalityAPI.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/equalityConnectAPI.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/equalityJointAPI.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/equalityWeldAPI.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/imageableAPI.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/jointAPI.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/keyframe.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/materialAPI.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/sceneAPI.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/siteAPI.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/tendon.h>
|
||||
|
||||
#include <pxr/usd/sdf/assetPath.h>
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
#include <mujoco/experimental/usd/mjcPhysics/tokens.h>
|
||||
|
||||
PXR_NAMESPACE_OPEN_SCOPE
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
// ==============================================================================
|
||||
// THIS FILE IS AUTO-GENERATED
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
|
||||
// NOLINTBEGIN(whitespace/line_length)
|
||||
// NOLINTBEGIN(whitespace/semicolon)
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user