mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
Changed vs7 output format so that Visual Studio can parse the error messages correctly
Also Visual Studio can jump to the correct file/linenumber
This commit is contained in:
parent
15f2836d9f
commit
819c572b4c
4
cpplint/cpplint.py
vendored
4
cpplint/cpplint.py
vendored
|
@ -1211,8 +1211,8 @@ def Error(filename, linenum, category, confidence, message):
|
||||||
if _ShouldPrintError(category, confidence, linenum):
|
if _ShouldPrintError(category, confidence, linenum):
|
||||||
_cpplint_state.IncrementErrorCount(category)
|
_cpplint_state.IncrementErrorCount(category)
|
||||||
if _cpplint_state.output_format == 'vs7':
|
if _cpplint_state.output_format == 'vs7':
|
||||||
sys.stderr.write('%s(%s): %s [%s] [%d]\n' % (
|
sys.stderr.write('%s(%s): error cpplint: [%s] %s [%d]\n' % (
|
||||||
filename, linenum, message, category, confidence))
|
filename, linenum, category, message, confidence))
|
||||||
elif _cpplint_state.output_format == 'eclipse':
|
elif _cpplint_state.output_format == 'eclipse':
|
||||||
sys.stderr.write('%s:%s: warning: %s [%s] [%d]\n' % (
|
sys.stderr.write('%s:%s: warning: %s [%s] [%d]\n' % (
|
||||||
filename, linenum, message, category, confidence))
|
filename, linenum, message, category, confidence))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user