MCPcopy Create free account
hub / github.com/VKCOM/nocc / IsSystemHeaderPath

Function IsSystemHeaderPath

internal/server/system-headers.go:34–38  ·  view source on GitHub ↗
(somePathOrFileName string)

Source from the content-addressed store, hash-verified

32}
33
34func IsSystemHeaderPath(somePathOrFileName string) bool {
35 return strings.HasPrefix(somePathOrFileName, "/usr/local/") ||
36 strings.HasPrefix(somePathOrFileName, "/usr/src/") ||
37 strings.HasPrefix(somePathOrFileName, "/Library/")
38}
39
40func (sHeaders *SystemHeadersCache) IsSystemHeader(headerPath string, fileSize int64, fileSHA256 common.SHA256) bool {
41 sHeaders.mu.RLock()

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected