summaryrefslogtreecommitdiff
path: root/bin/find-unused-defines-in-hrc-files.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/find-unused-defines-in-hrc-files.py')
-rwxr-xr-xbin/find-unused-defines-in-hrc-files.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/find-unused-defines-in-hrc-files.py b/bin/find-unused-defines-in-hrc-files.py
index 488b045340e5..5ad87d8cc3a0 100755
--- a/bin/find-unused-defines-in-hrc-files.py
+++ b/bin/find-unused-defines-in-hrc-files.py
@@ -87,6 +87,12 @@ exclusionSet = set([
"STR_VOBJ_MODE_",
"STR_COND_",
"SCSTR_CONTENT_",
+ "DATE_FUNCDESC_",
+ "DATE_FUNCNAME_",
+ "DATE_DEFFUNCNAME_",
+ "PRICING_DEFFUNCNAME_",
+ "PRICING_FUNCDESC_",
+ "PRICING_FUNCNAME_",
])
@@ -131,7 +137,7 @@ with a.stdout as txt:
# is the constant being used as an identifier by entries in .src files
if ".src:" in line2 and "HelpId = " in line2: found_reason_to_exclude = True
# is it being used as a constant in an ItemList in .src files?
- if ".src:" in line2 and ";> ;" in line2: found_reason_to_exclude = True
+ if ".src:" in line2 and (";> ;" in line2 or "; >;" in line2): found_reason_to_exclude = True
# these are used in calculations in other .hrc files
if "sw/inc/rcid.hrc:" in line2: found_reason_to_exclude = True
# calculations