nilness

package
v0.0.0-...-8fcbe07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package nilness inspects the control-flow graph of an SSA function and reports errors such as nil pointer dereferences and degenerate nil pointer comparisons.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "nilness",
	Doc:      doc,
	Run:      crdbConfig.run,
	Requires: []*analysis.Analyzer{buildssa.Analyzer},
}

Analyzer defines a pass that checks for uses of provably nil values that were likely in error with custom configuration suitable for the CRDB codebase.

View Source
var TestAnalyzer = &analysis.Analyzer{
	Name:     "nilness",
	Doc:      doc,
	Run:      defaultConfig.run,
	Requires: []*analysis.Analyzer{buildssa.Analyzer},
}

TestAnalyzer defines a pass that checks for uses of provably nil values that were likely in error.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL