MCPcopy Create free account
hub / github.com/dmlc/xgboost / process_cpp

Method process_cpp

ops/script/lint_cpp.py:79–89  ·  view source on GitHub ↗

Process a cpp file.

(self, path: str, suffix: str)

Source from the content-addressed store, hash-verified

77 cpplint._line_length = 100
78
79 def process_cpp(self, path: str, suffix: str) -> None:
80 """Process a cpp file."""
81 _cpplint_state.ResetErrorCounts()
82 cpplint.ProcessFile(str(path), _cpplint_state.verbose_level)
83 _cpplint_state.PrintErrorCounts()
84 errors = _cpplint_state.errors_by_category.copy()
85
86 if suffix == "h":
87 self.cpp_header_map[str(path)] = errors
88 else:
89 self.cpp_src_map[str(path)] = errors
90
91 @staticmethod
92 def _print_summary_map(

Callers 1

processFunction · 0.80

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected