MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / FindHeader

Method FindHeader

engine/3rdparty/tinyobjloader/deps/cpplint.py:631–644  ·  view source on GitHub ↗

Check if a header has already been included. Args: header: header to check. Returns: Line number of previous occurrence, or -1 if the header has not been seen before.

(self, header)

Source from the content-addressed store, hash-verified

629 self.ResetSection('')
630
631 def FindHeader(self, header):
632 """Check if a header has already been included.
633
634 Args:
635 header: header to check.
636 Returns:
637 Line number of previous occurrence, or -1 if the header has not
638 been seen before.
639 """
640 for section_list in self.include_list:
641 for f in section_list:
642 if f[0] == header:
643 return f[1]
644 return -1
645
646 def ResetSection(self, directive):
647 """Reset section checking for preprocessor directive.

Callers 1

CheckIncludeLineFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected