Functions | |
def | CheckBraces |
def | CheckIncludeLine |
def | CheckSpacing |
def | GetHeaderGuardCPPVariable |
def | makeErrorFn |
def | patch |
def | ProcessLine |
def roslint.cpplint_wrapper.CheckBraces | ( | fn, | |
filename, | |||
clean_lines, | |||
linenum, | |||
error | |||
) |
Complete replacement for cpplint.CheckBraces, since the brace rules for ROS C++ Style are completely different from the Google style guide ones.
Definition at line 58 of file cpplint_wrapper.py.
def roslint.cpplint_wrapper.CheckIncludeLine | ( | fn, | |
filename, | |||
clean_lines, | |||
linenum, | |||
include_state, | |||
error | |||
) |
Run the function to get include state, but suppress all the errors, since ROS C++ Style is silent on include order, and contains no prohibition on use of streams.
Definition at line 87 of file cpplint_wrapper.py.
def roslint.cpplint_wrapper.CheckSpacing | ( | fn, | |
filename, | |||
clean_lines, | |||
linenum, | |||
nesting_state, | |||
error | |||
) |
Do most of the original Spacing checks, but suppress the ones related to braces, since the ROS C++ Style rules are different.
Definition at line 95 of file cpplint_wrapper.py.
def roslint.cpplint_wrapper.GetHeaderGuardCPPVariable | ( | fn, | |
filename | |||
) |
Replacement for the function which determines the header guard variable, to pick one which matches ROS C++ Style.
Definition at line 44 of file cpplint_wrapper.py.
def roslint.cpplint_wrapper.makeErrorFn | ( | original_fn, | |
suppress_categories, | |||
suppress_message_matches | |||
) |
Create a return a wrapped version of the error-report function which suppresses specific error categories.
Definition at line 29 of file cpplint_wrapper.py.
def roslint.cpplint_wrapper.patch | ( | original_module | ) |
Decorator to easily allow wrapping/overriding of the Check* functions in cpplint. Should decorate a function which matches the signature of the function it replaces expect with the addition of a fn parameter, which is a pass-through of the replaced function, in case the replacement would like call through to the original functionality.
Definition at line 15 of file cpplint_wrapper.py.
def roslint.cpplint_wrapper.ProcessLine | ( | fn, | |
filename, | |||
file_extension, | |||
clean_lines, | |||
line, | |||
include_state, | |||
function_state, | |||
nesting_state, | |||
error, | |||
extra_check_functions = [] |
|||
) |
Squelch the error about access control indents.
Definition at line 103 of file cpplint_wrapper.py.