MCPcopy Create free account
hub / github.com/BVLC/caffe / IsSource

Method IsSource

scripts/cpp_lint.py:960–962  ·  view source on GitHub ↗

File has a source file extension.

(self)

Source from the content-addressed store, hash-verified

958 return '/'.join(self.Split()[0:2])
959
960 def IsSource(self):
961 """File has a source file extension."""
962 return self.Extension()[1:] in ('c', 'cc', 'cpp', 'cxx')
963
964
965def _ShouldPrintError(category, confidence, linenum):

Callers

nothing calls this directly

Calls 1

ExtensionMethod · 0.95

Tested by

no test coverage detected