From 6fca903365725cd69d87c2787b2aab600f673207 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Wed, 25 Jan 2017 09:33:25 -0700 Subject: layers: Disable clang-format for gen'd header The vk_validation_error_messages.h header file now disables clang-format, as it is generated in-source. Change-Id: Ie9abf005c79b67cdb5843025ce19091d23fe1bec --- layers/spec.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layers/spec.py b/layers/spec.py index 671bd276..0ee4e56f 100644 --- a/layers/spec.py +++ b/layers/spec.py @@ -182,7 +182,9 @@ class Specification: file_contents = [] file_contents.append(self.copyright) file_contents.append('\n#pragma once') - file_contents.append('#include ') + file_contents.append('\n// Disable auto-formatting for generated file') + file_contents.append('// clang-format off') + file_contents.append('\n#include ') file_contents.append('\n// enum values for unique validation error codes') file_contents.append('// Corresponding validation error message for each enum is given in the mapping table below') file_contents.append('// When a given error occurs, these enum values should be passed to the as the messageCode') @@ -572,4 +574,4 @@ if __name__ == "__main__": #flags must be 0 #
  • #pQueueCreateInfos must be a pointer to an array of queueCreateInfoCount valid VkDeviceQueueCreateInfo structures -#
  • \ No newline at end of file +# -- cgit v1.2.3