diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-06 12:26:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-06 22:14:19 +0200 |
commit | a7ffe4026a2f4fcc77d297c9bc671ded158efc46 (patch) | |
tree | 16f2365e1845735f6b62d6926e55762ad4b0ce88 /bin | |
parent | d299dc45409503ec4500b07c517b25e06438c611 (diff) |
move headers inside modules
Change-Id: I002f42d83820c86737ddceab805aa53ccb388e06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98203
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/find-headers-to-move-inside-modules.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/find-headers-to-move-inside-modules.py b/bin/find-headers-to-move-inside-modules.py index 313e30762de2..f33922ee457d 100755 --- a/bin/find-headers-to-move-inside-modules.py +++ b/bin/find-headers-to-move-inside-modules.py @@ -1,6 +1,7 @@ #!/usr/bin/python2 # Look for headers inside include/ that can be moved into their respective modules. +# Not 100% accurate import subprocess import sys @@ -31,7 +32,8 @@ a = subprocess.Popen("git grep '^#include <'", stdout=subprocess.PIPE, shell=Tru with a.stdout as txt: for line in txt: idx1 = line.find("#include <") - include = line[idx1 + 10 : len(line)-2] + idx2 = line.find(">", idx1 + 10) + include = line[idx1 + 10 : idx2] headerSetUnused.discard(include) # idx1 = line.find("/") |