From d823cf55e48559c3aa573154143d9d5d21ce025a Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Mon, 20 Feb 2023 22:53:47 -0800 Subject: [PATCH] disable clang-format in the test files also --- scripts/call_all.c.mako | 14 +++++++++++++- tests/call_all.c | 12 ++++++++++++ tests/test_extension_loader.c | 8 ++++++++ tests/test_extension_loader.cpp | 8 ++++++++ 4 files changed, 41 insertions(+), 1 deletion(-) diff --git a/scripts/call_all.c.mako b/scripts/call_all.c.mako index 99af196..fb9c3a0 100644 --- a/scripts/call_all.c.mako +++ b/scripts/call_all.c.mako @@ -116,7 +116,19 @@ def getCallArgs(params): callstr += '???' return callstr -%>#define CL_USE_DEPRECATED_OPENCL_1_0_APIS +%>/******************************************************************************* +// Copyright (c) 2021-2023 Ben Ashbaugh +// +// SPDX-License-Identifier: MIT or Apache-2.0 +*/ + +/* +// This file is generated from the Khronos OpenCL XML API Registry. +*/ + +// clang-format off + +#define CL_USE_DEPRECATED_OPENCL_1_0_APIS #define CL_USE_DEPRECATED_OPENCL_1_1_APIS #define CL_USE_DEPRECATED_OPENCL_1_2_APIS #define CL_USE_DEPRECATED_OPENCL_2_0_APIS diff --git a/tests/call_all.c b/tests/call_all.c index fd0ac81..e4294ae 100644 --- a/tests/call_all.c +++ b/tests/call_all.c @@ -1,3 +1,15 @@ +/******************************************************************************* +// Copyright (c) 2021-2023 Ben Ashbaugh +// +// SPDX-License-Identifier: MIT or Apache-2.0 +*/ + +/* +// This file is generated from the Khronos OpenCL XML API Registry. +*/ + +// clang-format off + #define CL_USE_DEPRECATED_OPENCL_1_0_APIS #define CL_USE_DEPRECATED_OPENCL_1_1_APIS #define CL_USE_DEPRECATED_OPENCL_1_2_APIS diff --git a/tests/test_extension_loader.c b/tests/test_extension_loader.c index d6ec66f..3b5a3b2 100644 --- a/tests/test_extension_loader.c +++ b/tests/test_extension_loader.c @@ -1,3 +1,11 @@ +/******************************************************************************* +// Copyright (c) 2021-2023 Ben Ashbaugh +// +// SPDX-License-Identifier: MIT or Apache-2.0 +*/ + +// clang-format off + #include "call_all.c" int main(int argc, char** argv) diff --git a/tests/test_extension_loader.cpp b/tests/test_extension_loader.cpp index d6ec66f..3b5a3b2 100644 --- a/tests/test_extension_loader.cpp +++ b/tests/test_extension_loader.cpp @@ -1,3 +1,11 @@ +/******************************************************************************* +// Copyright (c) 2021-2023 Ben Ashbaugh +// +// SPDX-License-Identifier: MIT or Apache-2.0 +*/ + +// clang-format off + #include "call_all.c" int main(int argc, char** argv)