Skip to content

Commit 60c4dd1

Browse files
committed
style: Add clang-format off comments to generated files
1 parent 56b0c50 commit 60c4dd1

23 files changed

Lines changed: 23 additions & 0 deletions

cmd/protoc-gen-cpp-tableau-loader/helper/helper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func GenerateCommonHeader(gen *protogen.Plugin, g *protogen.GeneratedFile, versi
2626
g.P("// versions:")
2727
g.P("// - protoc-gen-cpp-tableau-loader v", version)
2828
g.P("// - protoc ", protocVersion(gen))
29+
g.P("// clang-format off")
2930
}
3031

3132
func protocVersion(gen *protogen.Plugin) string {

test/cpp-tableau-loader/src/protoconf/hero_conf.pc.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// versions:
33
// - protoc-gen-cpp-tableau-loader v0.11.0
44
// - protoc v3.19.3
5+
// clang-format off
56
// source: hero_conf.proto
67

78
#include "hero_conf.pc.h"

test/cpp-tableau-loader/src/protoconf/hero_conf.pc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// versions:
33
// - protoc-gen-cpp-tableau-loader v0.11.0
44
// - protoc v3.19.3
5+
// clang-format off
56
// source: hero_conf.proto
67

78
#pragma once

test/cpp-tableau-loader/src/protoconf/hub.pc.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// versions:
33
// - protoc-gen-cpp-tableau-loader v0.11.0
44
// - protoc v3.19.3
5+
// clang-format off
56

67
#include "hub.pc.h"
78

test/cpp-tableau-loader/src/protoconf/hub.pc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// versions:
33
// - protoc-gen-cpp-tableau-loader v0.11.0
44
// - protoc v3.19.3
5+
// clang-format off
56

67
#pragma once
78
#include <ctime>

test/cpp-tableau-loader/src/protoconf/hub_shard0.pc.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// versions:
33
// - protoc-gen-cpp-tableau-loader v0.11.0
44
// - protoc v3.19.3
5+
// clang-format off
56

67
#include "hub.pc.h"
78

test/cpp-tableau-loader/src/protoconf/hub_shard1.pc.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// versions:
33
// - protoc-gen-cpp-tableau-loader v0.11.0
44
// - protoc v3.19.3
5+
// clang-format off
56

67
#include "hub.pc.h"
78

test/cpp-tableau-loader/src/protoconf/index_conf.pc.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// versions:
33
// - protoc-gen-cpp-tableau-loader v0.11.0
44
// - protoc v3.19.3
5+
// clang-format off
56
// source: index_conf.proto
67

78
#include "index_conf.pc.h"

test/cpp-tableau-loader/src/protoconf/index_conf.pc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// versions:
33
// - protoc-gen-cpp-tableau-loader v0.11.0
44
// - protoc v3.19.3
5+
// clang-format off
56
// source: index_conf.proto
67

78
#pragma once

test/cpp-tableau-loader/src/protoconf/item_conf.pc.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// versions:
33
// - protoc-gen-cpp-tableau-loader v0.11.0
44
// - protoc v3.19.3
5+
// clang-format off
56
// source: item_conf.proto
67

78
#include "item_conf.pc.h"

0 commit comments

Comments
 (0)