summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/countusersofdefaultparams.py
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/countusersofdefaultparams.py')
-rwxr-xr-xcompilerplugins/clang/countusersofdefaultparams.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/compilerplugins/clang/countusersofdefaultparams.py b/compilerplugins/clang/countusersofdefaultparams.py
index a790abfcbd76..c36f91b36dbb 100755
--- a/compilerplugins/clang/countusersofdefaultparams.py
+++ b/compilerplugins/clang/countusersofdefaultparams.py
@@ -9,9 +9,11 @@ callDict = dict()
# clang does not always use exactly the same numbers in the type-parameter vars it generates
# so I need to substitute them to ensure we can match correctly.
-normalizeTypeParamsRegex = re.compile(r"type-parameter-\d+-\d+")
+normalizeTypeParamsRegex1 = re.compile(r"type-parameter-\d+-\d+")
+normalizeTypeParamsRegex2 = re.compile(r"typename enable_if<.*")
def normalizeTypeParams( line ):
- return normalizeTypeParamsRegex.sub("type-parameter-?-?", line)
+ line = normalizeTypeParamsRegex1.sub("type-parameter-?-?", line)
+ return normalizeTypeParamsRegex2.sub("type-parameter-?-?", line)
with io.open("loplugin.countusersofdefaultparams.log", "rb", buffering=1024*1024) as txt:
for line in txt: