From cde1497dacbbe90c85555c93f002294c15b36132 Mon Sep 17 00:00:00 2001 From: John Zulauf Date: Fri, 26 Jan 2018 13:42:08 -0700 Subject: layers: Improve doc validation init-list parsing Change VALIDATION_ERROR_ parsing to correctly recognize error ids in initializer lists, including the formatting as done by clang-format. {VALIDATION_ERRROR_nnnn, ... VALIDATION_ERROR_nnnn} Change-Id: I25a1c0d0c9181ece458f7c83d2f184abea8d1f4a --- scripts/vk_validation_stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/vk_validation_stats.py b/scripts/vk_validation_stats.py index af84c593..05b91256 100755 --- a/scripts/vk_validation_stats.py +++ b/scripts/vk_validation_stats.py @@ -213,14 +213,14 @@ class ValidationSource: continue # Find enums #if 'VALIDATION_ERROR_' in line and True not in [ignore in line for ignore in ['[VALIDATION_ERROR_', 'UNIQUE_VALIDATION_ERROR_CODE']]: - if ' VALIDATION_ERROR_' in line: + if 'VALIDATION_ERROR_' in line: # Need to isolate the validation error enum #print("Line has check:%s" % (line)) line_list = line.split() enum_list = [] for str in line_list: if 'VALIDATION_ERROR_' in str and True not in [ignore_str in str for ignore_str in ['[VALIDATION_ERROR_', 'VALIDATION_ERROR_UNDEFINED', 'UNIQUE_VALIDATION_ERROR_CODE']]: - enum_list.append(str.strip(',);')) + enum_list.append(str.strip(',);{}')) #break for enum in enum_list: if enum != '': -- cgit v1.2.3