Index: cpplint.py |
diff --git a/cpplint.py b/cpplint.py |
index f95be89135adebd5206db85843ce9f5ac7ba49a9..ec7cbc4ad008308b6e056741c7ab34aecb9293d8 100755 |
--- a/cpplint.py |
+++ b/cpplint.py |
@@ -816,6 +816,9 @@ def Error(filename, linenum, category, confidence, message): |
if _cpplint_state.output_format == 'vs7': |
sys.stderr.write('%s(%s): %s [%s] [%d]\n' % ( |
filename, linenum, message, category, confidence)) |
+ elif _cpplint_state.output_format == 'eclipse': |
+ sys.stderr.write('%s:%s: warning: %s [%s] [%d]\n' % ( |
+ filename, linenum, message, category, confidence)) |
else: |
sys.stderr.write('%s:%s: %s [%s] [%d]\n' % ( |
filename, linenum, message, category, confidence)) |
@@ -3314,8 +3317,8 @@ def ParseArguments(args): |
if opt == '--help': |
PrintUsage(None) |
elif opt == '--output': |
- if not val in ('emacs', 'vs7'): |
- PrintUsage('The only allowed output formats are emacs and vs7.') |
+ if not val in ('emacs', 'vs7', 'eclipse'): |
+ PrintUsage('The only allowed output formats are emacs, vs7 and eclipse.') |
output_format = val |
elif opt == '--verbose': |
verbosity = int(val) |