From d7c9322f964f239a2a4286268d04e9fd80ae5bdc Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Mon, 9 Jan 2017 19:24:19 +0000 Subject: [PATCH] Fix function regex in update_tests so it can handle {}'s in function args git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291467 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/update_test_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/update_test_checks.py b/utils/update_test_checks.py index 5b4449702cc..92ab5ef6599 100755 --- a/utils/update_test_checks.py +++ b/utils/update_test_checks.py @@ -64,7 +64,7 @@ LLC_FUNCTION_RE = re.compile( flags=(re.M | re.S)) OPT_FUNCTION_RE = re.compile( r'^\s*define\s+(?:internal\s+)?[^@]*@(?P[\w-]+?)\s*\(' - r'(\s+)?[^{]*\{\n(?P.*?)^\}$', + r'(\s+)?[^)]*[^{]*\{\n(?P.*?)^\}$', flags=(re.M | re.S)) CHECK_PREFIX_RE = re.compile('--check-prefix=(\S+)') CHECK_RE = re.compile(r'^\s*;\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL)?:') -- 2.49.0