MCPcopy Create free account
hub / github.com/Kitware/VTK / CheckPrintSelf

Method CheckPrintSelf

Testing/Core/HeaderTesting.py:494–514  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

492 self.Error("Weird constructor")
493
494 def CheckPrintSelf(self):
495 if not self.ClassName:
496 return
497 typere = "^\\s*void\\s*PrintSelf\\s*\\(\\s*ostream\\s*&\\s*os*\\s*,\\s*vtkIndent\\s*indent\\s*\\)"
498 newtypere = "^\\s*virtual\\s*void\\s*PrintSelf\\s*\\(\\s*ostream\\s*&\\s*os*\\s*,\\s*vtkIndent\\s*indent\\s*\\)"
499 regx1 = re.compile(typere)
500 regx2 = re.compile(newtypere)
501 found = 0
502 oldstyle = 0
503 for a in self.FileLines:
504 line = a.strip()
505 rm1 = regx1.match(line)
506 rm2 = regx2.match(line)
507 if rm1 or rm2:
508 found = 1
509 if rm1:
510 oldstyle = 1
511 if not found:
512 self.Print( "File: %s does not define PrintSelf method:" %
513 self.FileName )
514 self.Warning("No PrintSelf method")
515
516 def CheckWindowsMangling(self):
517 lines = []

Callers 1

HeaderTesting.pyFile · 0.80

Calls 4

PrintMethod · 0.95
WarningMethod · 0.95
compileMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected