diff options
| author | Alexey Kardashevskiy <aik@linux.ibm.com> | 2021-07-06 14:01:49 +1000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-07-07 13:39:53 +0200 |
| commit | 95793bce7d3eaa26fe814335010d7514e9da46fa (patch) | |
| tree | 20e362dd9469dddb45da91e4e7667890489b9429 /tools/syz-linter | |
| parent | bbe0b1e942b7610fb168fbc9edd333b3f4bc4b27 (diff) | |
pkg: update generated files to go 1.17
"make generate" produces this diff when go 1.17 (go1.17-c95464f0ea3f==upstream)
is used. Seems compatible with >=1.16.
https://github.com/golang/go/commit/4d2d89ff42ca documents the syntax.
https://github.com/golang/go/commit/eeadce2d8713 enforces "ignore" for
unsatisfiable tags hence the pkg/csource/gen.go change.
Signed-off-by: Alexey Kardashevskiy <aik@linux.ibm.com>
Diffstat (limited to 'tools/syz-linter')
| -rw-r--r-- | tools/syz-linter/linter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-linter/linter.go b/tools/syz-linter/linter.go index 457d57935..3afc84ca4 100644 --- a/tools/syz-linter/linter.go +++ b/tools/syz-linter/linter.go @@ -145,7 +145,7 @@ var ( noPeriodComment = regexp.MustCompile(`^// [A-Z][a-z].+[a-z]$`) lowerCaseComment = regexp.MustCompile(`^// [a-z]+ `) onelineExceptions = regexp.MustCompile(`// want \"|http:|https:`) - specialComment = regexp.MustCompile(`//go:generate|// nolint:`) + specialComment = regexp.MustCompile(`//go:generate|//go:build|// nolint:`) ) // checkStringLenCompare checks for string len comparisons with 0. |
