summaryrefslogtreecommitdiff
path: root/bin/update_pch
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-05-12 15:42:30 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-05-12 23:45:57 +0200
commit1a673e30efcd6032018f7d4a62f13dc4bec4a67c (patch)
tree8ce45fd37df421348901f646f1380bc56b1e4fe8 /bin/update_pch
parent9d3075e60794e5e92a75cf1691ea4125fbdb5b98 (diff)
with pch level 2 (base), a module still shouldn't pch its own headers
Change-Id: I9c7f7d2f266950fac683bf5148dec741d7652585 Reviewed-on: https://gerrit.libreoffice.org/72194 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'bin/update_pch')
-rwxr-xr-xbin/update_pch9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/update_pch b/bin/update_pch
index 9af484c2d8bd..0ccf38f347f5 100755
--- a/bin/update_pch
+++ b/bin/update_pch
@@ -486,10 +486,15 @@ def sort_by_category(list, root, module, filter_local):
sys.append(i)
elif '<boost/' in i:
boo.append(i)
- elif '<osl/' in i or '<rtl/' in i or '<sal/' in i or '<vcl/' in i:
- cor.append(i)
elif prefix in i or not '/' in i:
mod.append(i)
+ elif '<sal/' in i or '<vcl/' in i:
+ cor.append(i)
+ elif '<osl/' in i or '<rtl/' in i:
+ if module == "sal": # osl and rtl are also part of sal
+ mod.append(i)
+ else:
+ cor.append(i)
# Headers from another module that is closely tied to the module.
elif module == 'sc' and '<formula' in i:
mod.append(i)