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

Method CheckBegin

scripts/cpp_lint.py:1767–1780  ·  view source on GitHub ↗

Run checks that applies to text up to the opening brace. This is mostly for checking the text after the class identifier and the "{", usually where the base class is specified. For other blocks, there isn't much to check, so we always pass. Args: filename: The name of the cu

(self, filename, clean_lines, linenum, error)

Source from the content-addressed store, hash-verified

1765 self.inline_asm = _NO_ASM
1766
1767 def CheckBegin(self, filename, clean_lines, linenum, error):
1768 """Run checks that applies to text up to the opening brace.
1769
1770 This is mostly for checking the text after the class identifier
1771 and the "{", usually where the base class is specified. For other
1772 blocks, there isn't much to check, so we always pass.
1773
1774 Args:
1775 filename: The name of the current file.
1776 clean_lines: A CleansedLines instance containing the file.
1777 linenum: The number of the line to check.
1778 error: The function to call with any errors found.
1779 """
1780 pass
1781
1782 def CheckEnd(self, filename, clean_lines, linenum, error):
1783 """Run checks that applies to text after the closing brace.

Callers 1

UpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected