Process a cpp file.
(self, path: str, suffix: str)
| 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( |