MCPcopy
hub / github.com/google/gvisor / checkTypeAlignment

Method checkTypeAlignment

tools/checklocks/analysis.go:87–91  ·  view source on GitHub ↗

checkTypeAlignment checks the alignment of the given type. This calls typeAlignment, which resolves all types recursively. This method should be called for all types individual to ensure full coverage.

(pkg *types.Package, typ *types.Named)

Source from the content-addressed store, hash-verified

85// This calls typeAlignment, which resolves all types recursively. This method
86// should be called for all types individual to ensure full coverage.
87func (pc *passContext) checkTypeAlignment(pkg *types.Package, typ *types.Named) {
88 if !hasTypeParams(typ) {
89 _ = pc.typeAlignment(pkg, typ.Obj())
90 }
91}
92
93// atomicRules specify read constraints.
94type atomicRules int

Callers 1

runFunction · 0.95

Calls 3

typeAlignmentMethod · 0.95
hasTypeParamsFunction · 0.85
ObjMethod · 0.80

Tested by

no test coverage detected