aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ifuzz
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-07-29 12:53:57 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-07-29 12:55:55 +0200
commit9534e89c796edb8b7c0e8197c7e4ddca149d9526 (patch)
tree92cf20337bc404903b716e3d0a969f87e59f3c11 /pkg/ifuzz
parent8ab0cf5b552a911e8033be38f8dcc265155059df (diff)
all: mark auto-generated files
Use the standard Go convention for Go files: https://golang.org/pkg/cmd/go/internal/generate Use github linguish for other files: https://github.com/github/linguist#generated-code Both are understood by github and should result in these files being collapsed in PRs by default.
Diffstat (limited to 'pkg/ifuzz')
-rw-r--r--pkg/ifuzz/gen/gen.go2
-rw-r--r--pkg/ifuzz/generated/insns.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/ifuzz/gen/gen.go b/pkg/ifuzz/gen/gen.go
index 2bbd69109..654a3cf10 100644
--- a/pkg/ifuzz/gen/gen.go
+++ b/pkg/ifuzz/gen/gen.go
@@ -163,7 +163,7 @@ nextInsn:
fmt.Fprintf(os.Stderr, "deduped %v instructions\n", len(insns)-len(deduped))
insns = deduped
- fmt.Printf("// AUTOGENERATED FILE\n\n")
+ fmt.Printf("// Code generated by pkg/ifuzz/gen. DO NOT EDIT.\n\n")
fmt.Printf("// +build !codeanalysis\n\n")
fmt.Printf("package generated\n\n")
fmt.Printf("import . \"github.com/google/syzkaller/pkg/ifuzz\"\n\n")
diff --git a/pkg/ifuzz/generated/insns.go b/pkg/ifuzz/generated/insns.go
index f63233a9a..3a2f747fe 100644
--- a/pkg/ifuzz/generated/insns.go
+++ b/pkg/ifuzz/generated/insns.go
@@ -1,4 +1,4 @@
-// AUTOGENERATED FILE
+// Code generated by pkg/ifuzz/gen. DO NOT EDIT.
// +build !codeanalysis