Sort bin/find-unneeded-includes results
not naturally, but numerically so a hit in line 101 will be listed after the hit in line 99 not after the one in line 10 Change-Id: Ic5b3da80df20a3aeda7b1a71c8d6380371ed3ee8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179320 Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de> Tested-by: Jenkins
This commit is contained in:
parent
892bd92c89
commit
1a9572e505
@ -410,10 +410,10 @@ def processIWYUOutput(iwyuOutput, moduleRules, fileName, noexclude, checknamespa
|
||||
subprocess.run(["git", "grep", "-n", "namespace.*[^a-zA-Z]"+nameSpace+" *;", fileName])
|
||||
|
||||
if removefwdd:
|
||||
for remove in sorted(toRemove):
|
||||
for remove in sorted(toRemove, key=lambda x: int(x.split(":")[1])):
|
||||
print("ERROR: %s: remove not needed forward declaration" % remove)
|
||||
else:
|
||||
for remove in sorted(toRemove):
|
||||
for remove in sorted(toRemove, key=lambda x: int(x.split(":")[1])):
|
||||
print("ERROR: %s: remove not needed include" % remove)
|
||||
return len(toRemove)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user