tree: e376061136b5457ca0fa299bfae14d793a7c1e9e [path history] [tgz]
  1. copyright/
  2. aosp_asm
  3. aosp_c
  4. aosp_cpp
  5. aosp_tmpl
  6. aosp_txt
  7. broken_1
  8. broken_2
  9. broken_3
  10. broken_4
  11. broken_5
  12. broken_6
  13. copyright.go
  14. embed.go
  15. external_murmur
  16. generated
  17. generated_aosp_c
  18. generated_aosp_java
  19. generated_by
  20. generated_protoc
  21. generated_stringer
  22. README.md
tools/copyright/README.md

copyright


import "android.googlesource.com/platform/tools/gpu/tools/copyright"

Usage

var (
	Generated = []*regexp.Regexp{}
	Normal    = []*regexp.Regexp{}
)

func Build

func Build(name string, i Info) string

func MatchGenerated

func MatchGenerated(file []byte) int

func MatchNormal

func MatchNormal(file []byte) int

func Regexp

func Regexp(name string, i Info, trim bool) *regexp.Regexp

type Info

type Info struct {
	Year string
	Tool string
}

type Language

type Language struct {
	Name       string
	Extensions []string
	License    string
	Emit       string
	Current    []*regexp.Regexp
	Old        []*regexp.Regexp
}

func FindExtension

func FindExtension(ext string) *Language

func FindLanguage

func FindLanguage(name string) *Language

func (*Language) MatchCurrent

func (l *Language) MatchCurrent(file []byte) int

func (*Language) MatchOld

func (l *Language) MatchOld(file []byte) int