From a7bee74fb0b9ab4ad103bb7ced4ed86f0e72550f Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Thu, 24 May 2012 22:34:50 +0100 Subject: [PATCH] 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. --- Tools/capp_lint/capp_lint | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/capp_lint/capp_lint b/Tools/capp_lint/capp_lint index f89181237..06f56646e 100755 --- a/Tools/capp_lint/capp_lint +++ b/Tools/capp_lint/capp_lint @@ -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: