diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-10-24 21:19:37 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-10-25 11:22:21 +0200 |
commit | 5af524251642a43747f56c1f24c41222fd9ac69f (patch) | |
tree | 0195f3a01e12d4f047e7da825bd042977c138b76 /bin | |
parent | 8f71eb5182f7fe6d3e19705ed233f5f84a0a6208 (diff) |
sw: fix some IWYU warnings
Change-Id: Ic7e6aa31e5c6d210101da7223a294092ab5b7481
Reviewed-on: https://gerrit.libreoffice.org/62334
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/find-unneeded-includes | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/find-unneeded-includes b/bin/find-unneeded-includes index 5d043f0da1a9..c949c887d905 100755 --- a/bin/find-unneeded-includes +++ b/bin/find-unneeded-includes @@ -169,6 +169,9 @@ def processIWYUOutput(iwyuOutput, moduleRules): match = re.match("- (.*;(?: })*)* // lines (.*)-.*", line) if match: fwdDecl = match.group(1) + if fwdDecl.endswith(";"): + # Remove trailing semicolon. + fwdDecl = fwdDecl[:-1] lineno = match.group(2) if not ignoreRemoval(fwdDecl, toAdd, currentFileName, moduleRules): toRemove.append("%s:%s: %s" % (currentFileName, lineno, fwdDecl)) |