MCPcopy Create free account
hub / github.com/SIPp/sipp / CheckClassFinished

Method CheckClassFinished

cpplint.py:1732–1747  ·  view source on GitHub ↗

Checks that all classes have been completely parsed. Call this when all lines in a file have been processed. Args: filename: The name of the current file. error: The function to call with any errors found.

(self, filename, error)

Source from the content-addressed store, hash-verified

1730 return None
1731
1732 def CheckClassFinished(self, filename, error):
1733 """Checks that all classes have been completely parsed.
1734
1735 Call this when all lines in a file have been processed.
1736 Args:
1737 filename: The name of the current file.
1738 error: The function to call with any errors found.
1739 """
1740 # Note: This test can result in false positives if #ifdef constructs
1741 # get in the way of brace matching. See the testBuildClass test in
1742 # cpplint_unittest.py for an example of this.
1743 for obj in self.stack:
1744 if isinstance(obj, _ClassInfo):
1745 error(filename, obj.starting_linenum, 'build/class', 5,
1746 'Failed to find complete declaration of class %s' %
1747 obj.name)
1748
1749
1750def CheckForNonStandardConstructs(filename, clean_lines, linenum,

Callers 1

ProcessFileDataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected