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

Method SeenOpenBrace

scripts/cpp_lint.py:1935–1942  ·  view source on GitHub ↗

Check if we have seen the opening brace for the innermost block. Returns: True if we have seen the opening brace, False if the innermost block is still expecting an opening brace.

(self)

Source from the content-addressed store, hash-verified

1933 self.pp_stack = []
1934
1935 def SeenOpenBrace(self):
1936 """Check if we have seen the opening brace for the innermost block.
1937
1938 Returns:
1939 True if we have seen the opening brace, False if the innermost
1940 block is still expecting an opening brace.
1941 """
1942 return (not self.stack) or self.stack[-1].seen_open_brace
1943
1944 def InNamespaceBody(self):
1945 """Check if we are currently one level inside a namespace body.

Callers 1

UpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected