tree: 99a76ddaededb841db2dbe9b85ed8a486447438e [path history] [tgz]
  1. limits/
  2. no_unreachables.go
  3. no_unreachables_test.go
  4. no_unused_types.go
  5. README.md
  6. validate.go
api/apic/validate/README.md

validate


import "android.googlesource.com/platform/tools/gpu/api/apic/validate"

Package validate registers and implements the “validate” apic command.

The validate command analyses the specified API for correctness, reporting errors if any problems are found.

Usage

func Validate

func Validate(apiName string, api *semantic.API) []error

Validate performs a number of checks on the api file for correctness. If any problems are found then they are returned as errors.