Documentation ¶
Overview ¶
Package checkconst checks constant values.
This analyzer supports multiple annotations: checkconst, checkoffset, checksize and checkalign. Each of these essentially checks the value of the declared constant (or the #define'ed value in the case of an assembly file) against the value seen during analysis. If this does not match, an error is emitted with the appropriate value for that constant/offset/size/alignment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "checkconst", Doc: "validates basic constants", Run: run, FactTypes: []analysis.Fact{ (*Constants)(nil), }, }
Analyzer defines the entrypoint.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.