Package rosmake :: Module gcc_output_parse :: Class Warnings
[frames] | no frames]

Class Warnings

source code

Extract warnings from GCC's output

Analyzes compiler output and classifies warnings.

Instance Methods
 
__init__(self, console_output) source code
 
byType(self, warntype)
Extract warning messages corresponding to warntype.
source code
 
analyze(self)
Get dictionary of classified warnings.
source code
Method Details

byType(self, warntype)

source code 

Extract warning messages corresponding to warntype. The warntypes can be all keys of the _warning_pattern_map dictionary.

Parameters:
  • warntype (str @return a list of warning messages @rtype list) - The type of warning message that should be extracted.

analyze(self)

source code 

Get dictionary of classified warnings.

@return A dictionary of lists of warning messages indexed by the warning type @rtype {str:[str]}