diff options
| author | John Zulauf <jzulauf@lunarg.com> | 2018-01-26 13:42:08 -0700 |
|---|---|---|
| committer | jzulauf-lunarg <32470354+jzulauf-lunarg@users.noreply.github.com> | 2018-01-31 09:12:35 -0700 |
| commit | cde1497dacbbe90c85555c93f002294c15b36132 (patch) | |
| tree | 2ccfafb61a92d8d6334a61c6000ad9f44a110c95 /scripts | |
| parent | a588b8c3f1ece36a76b1a89969deb3595d154b61 (diff) | |
| download | usermoji-cde1497dacbbe90c85555c93f002294c15b36132.tar.xz | |
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
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/vk_validation_stats.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 != '': |
