aboutsummaryrefslogtreecommitdiff
path: root/layers
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2017-01-25 09:33:25 -0700
committerMark Lobodzinski <mark@lunarg.com>2017-01-26 10:01:27 -0700
commit6fca903365725cd69d87c2787b2aab600f673207 (patch)
tree199321f301ab79e512852a5734840a820ee2fa05 /layers
parent9c6f8d50b4954c0a4e229dca9cc16647fcefcf0e (diff)
downloadusermoji-6fca903365725cd69d87c2787b2aab600f673207.tar.xz
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
Diffstat (limited to 'layers')
-rw-r--r--layers/spec.py6
1 files 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 <unordered_map>')
+ file_contents.append('\n// Disable auto-formatting for generated file')
+ file_contents.append('// clang-format off')
+ file_contents.append('\n#include <unordered_map>')
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__":
#<em class="parameter"><code>flags</code></em> <span class="normative">must</span> be <code class="literal">0</code>
#</li><li class="listitem">
#<em class="parameter"><code>pQueueCreateInfos</code></em> <span class="normative">must</span> be a pointer to an array of <em class="parameter"><code>queueCreateInfoCount</code></em> valid <code class="code">VkDeviceQueueCreateInfo</code> structures
-#</li> \ No newline at end of file
+#</li>