|
Medial Code Documentation
|
Data Structures | |
| class | LintHelper |
Functions | |
| filepath_enumerate (paths) | |
| get_header_guard_dmlc (filename) | |
| process (fname, allow_type) | |
| main () | |
Variables | |
| CXX_SUFFIX = set(['cc', 'c', 'cpp', 'h', 'cu', 'hpp']) | |
| PYTHON_SUFFIX = set(['py']) | |
| _HELPER = LintHelper() | |
| GetHeaderGuardCPPVariable | |
Lint helper to generate lint summary of source. Copyright by Contributors
| lint.filepath_enumerate | ( | paths | ) |
Enumerate the file paths of all subfiles of the list of paths
| lint.get_header_guard_dmlc | ( | filename | ) |
Get Header Guard Convention for DMLC Projects.
For headers in include, directly use the path
For headers in src, use project name plus path
Examples: with project-name = dmlc
include/dmlc/timer.h -> DMLC_TIMTER_H_
src/io/libsvm_parser.h -> DMLC_IO_LIBSVM_PARSER_H_
| lint.main | ( | void | ) |
Main entry function.
| lint.process | ( | fname, | |
| allow_type | |||
| ) |
Process a file.