Functions
roslint::cpplint_wrapper Namespace Reference

Functions

def CheckBraces
def CheckEmptyBlockBody
def CheckIncludeLine
def CheckSpacing
def GetHeaderGuardCPPVariable
def makeErrorFn
def patch
def ProcessLine

Function Documentation

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 85 of file cpplint_wrapper.py.

def roslint.cpplint_wrapper.CheckEmptyBlockBody (   fn,
  filename,
  clean_lines,
  linenum,
  error 
)
Look for empty loop/conditional body with only a single semicolon,
    but allow ros-style do while loops. 

Definition at line 141 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 114 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 122 of file cpplint_wrapper.py.

Replacement for the function which determines the header guard variable, to pick one which
    matches ROS C++ Style. 

Definition at line 71 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 58 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 44 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 130 of file cpplint_wrapper.py.



roslint
Author(s): Mike Purvis, Jack O'Quin
autogenerated on Fri Aug 28 2015 12:41:58