mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-10-13 14:16:23 +00:00
Merge pull request #244 from schoetbi/FixVs7Oput
Changed vs7 output format so that Visual Studio can parse the error
This commit is contained in:
commit
d012c72624
1 file changed
+2
-2
Vendored
+2
-2
@@ -1211,8 +1211,8 @@ def Error(filename, linenum, category, confidence, message):
|
||||
if _ShouldPrintError(category, confidence, linenum):
|
||||
_cpplint_state.IncrementErrorCount(category)
|
||||
if _cpplint_state.output_format == 'vs7':
|
||||
sys.stderr.write('%s(%s): %s [%s] [%d]\n' % (
|
||||
filename, linenum, message, category, confidence))
|
||||
sys.stderr.write('%s(%s): error cpplint: [%s] %s [%d]\n' % (
|
||||
filename, linenum, category, message, confidence))
|
||||
elif _cpplint_state.output_format == 'eclipse':
|
||||
sys.stderr.write('%s:%s: warning: %s [%s] [%d]\n' % (
|
||||
filename, linenum, message, category, confidence))
|
||||
|
||||
Reference in new issue
Block a user