find-unneeded-includes: raise maximum output line length

This is helpful when checking and rechecking the detailed output.

It happens often that removing an unnecessary header makes it
necessary to add a transitively included header. This is
indicated by an error message referring to a now unknown class name.

Finding that header was hard because the default 80 char output limit
usually truncates the class names.

Change-Id: Iae08bc326625961009038007db4a982859f64c8c
Reviewed-on: https://gerrit.libreoffice.org/75598
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Tested-by: Michael Stahl <Michael.Stahl@cib.de>
This commit is contained in:
Gabor Kelemen
2019-07-14 20:08:18 +02:00
committed by Michael Stahl
parent bdffe94e0a
commit 6eed518408

View File

@@ -277,7 +277,7 @@ def tidy(compileCommands, paths):
if assume:
args = args.replace(assumeAbs, "-x c++ " + pathAbs)
invocation = "include-what-you-use -Xiwyu --no_fwd_decls " + args
invocation = "include-what-you-use -Xiwyu --no_fwd_decls -Xiwyu --max_line_length=200 " + args
task_queue.put((invocation, moduleRules))
task_queue.join()