MCPcopy Index your code
hub / github.com/cpplint/cpplint / CheckItemIndentationInNamespace

Function CheckItemIndentationInNamespace

cpplint.py:7261–7266  ·  view source on GitHub ↗
(filename, raw_lines_no_comments, linenum, error)

Source from the content-addressed store, hash-verified

7259# If the line above is blank (excluding comments) or the start of
7260# an inner namespace, it cannot be indented.
7261def CheckItemIndentationInNamespace(filename, raw_lines_no_comments, linenum, error):
7262 line = raw_lines_no_comments[linenum]
7263 if re.match(r"^\s+", line):
7264 error(
7265 filename, linenum, "whitespace/indent_namespace", 4, "Do not indent within a namespace."
7266 )
7267
7268
7269def ProcessLine(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected