From 5af524251642a43747f56c1f24c41222fd9ac69f Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 24 Oct 2018 21:19:37 +0200 Subject: sw: fix some IWYU warnings Change-Id: Ic7e6aa31e5c6d210101da7223a294092ab5b7481 Reviewed-on: https://gerrit.libreoffice.org/62334 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- bin/find-unneeded-includes | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin') 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)) -- cgit