]> khamidou — GitHub mirrors - arcanist.git/commit
Filter out messages from included files
authorSven Axelsson <sven@axelsson.name>
Wed, 30 Oct 2013 20:46:30 +0000 (13:46 -0700)
committerepriestley <git@epriestley.com>
Wed, 30 Oct 2013 20:46:30 +0000 (13:46 -0700)
commitaabbdbd2ab95b85f12e417f1b612fe8c6175d76a
treef3b7e06654946c7c825702f27c19501b71d99d0b
parent6dc04af6e808f44f3a009ebbdbf0bd6d5efad5c3
Filter out messages from included files

Summary:
CppCheck shows lint messages from included files as well as the current
file. Filter out those, since they don't make much sense in the context
of `arc lint`.

Test Plan:
Before this patch, `arc lint` using `ArcanistCppcheckLinter`. Note that lint messages
from included files appear pointing to a line in the active file.
After this patch, only messages from the active file are included.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran
Differential Revision: https://secure.phabricator.com/D7444
src/lint/linter/ArcanistCppcheckLinter.php