Medial Code Documentation
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
lint Namespace Reference

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
 

Detailed Description

Lint helper to generate lint summary of source.

Copyright by Contributors

Function Documentation

◆ filepath_enumerate()

lint.filepath_enumerate (   paths)
Enumerate the file paths of all subfiles of the list of paths

◆ get_header_guard_dmlc()

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_

◆ main()

lint.main ( void  )
Main entry function.

◆ process()

lint.process (   fname,
  allow_type 
)
Process a file.