demos: Protect smoke demo data file from c-f
authorMark Lobodzinski <mark@lunarg.com>
Wed, 25 Jan 2017 17:11:50 +0000 (10:11 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Wed, 25 Jan 2017 17:24:10 +0000 (10:24 -0700)
Clang formatting the teapot mesh data file makes it unnecessarily
lengthy -- disabled for the data definition portion of the file.

Change-Id: I773fc4655b381b26a33e32fe845514f36b9d8e66

demos/smoke/Meshes.teapot.h

index 68aa297..b0e19ef 100644 (file)
@@ -32,6 +32,9 @@
 //
 //   https://raw.githubusercontent.com/KhronosGroup/WebGL/master/sdk/demos/google/shiny-teapot/teapot-streams.js
 
+// Disable auto-formatting to get multiple values per line
+// clang-format off
+
 static const float teapot_positions[] = {
     17.83489990234375f, 0.0f, 30.573999404907227f,
     16.452699661254883f, -7.000179767608643f, 30.573999404907227f,
@@ -1638,6 +1641,8 @@ static const float teapot_normals[] = {
     0.5266720056533813, 0, 0.8500679731369019,
 };
 
+// clang-format on
+
 static const int teapot_indices[] = {
     0, 1, 2,
     2, 3, 0,