package checkaligned
import "gvisor.dev/gvisor/tools/checkaligned"
Package checkaligned ensures that atomic (u)int operations happen exclusively via the atomicbitops package.
We support a "// +checkalignedignore" escape hatch in the package comment that disables checking throughout the package.
Index ¶
Variables ¶
var Analyzer = &analysis.Analyzer{ Name: "checkaligned", Doc: "prohibits direct use of atomic int operations", Run: run, }
Analyzer defines the entrypoint.
Source Files ¶
checkaligned.go
- Version
- v0.0.0-20250702182429-85e76111eb28 (latest)
- Published
- Jul 2, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 3 hours ago –
Tools for package owners.