Report the original line contents in capp_lint.

capp_lint does some preprocessing of lines to simplify the lint tests, but the user will expect the regular, non processed lines in the output.
This commit is contained in:
Alexander Ljungberg
2012-05-24 22:34:50 +01:00
parent 1f803f52d1
commit a7bee74fb0
+2 -1
View File
@@ -309,6 +309,7 @@ class LintChecker(object):
continue
line = self.line
originalLine = line
lineFilter = check.get('filter')
if lineFilter:
@@ -365,7 +366,7 @@ class LintChecker(object):
break
if positions:
self.error(check['error'], line=line, positions=positions, type=check['type'])
self.error(check['error'], line=originalLine, positions=positions, type=check['type'])
def next_statement(self, expect_line=False, check_line=True):
try: