Skip to content

Commit f8a2ff2

Browse files
authored
disable clang-format in the test files also (#19)
1 parent f1a7817 commit f8a2ff2

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed

scripts/call_all.c.mako

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,19 @@ def getCallArgs(params):
116116
callstr += '???'
117117
return callstr
118118
119-
%>#define CL_USE_DEPRECATED_OPENCL_1_0_APIS
119+
%>/*******************************************************************************
120+
// Copyright (c) 2021-2023 Ben Ashbaugh
121+
//
122+
// SPDX-License-Identifier: MIT or Apache-2.0
123+
*/
124+
125+
/*
126+
// This file is generated from the Khronos OpenCL XML API Registry.
127+
*/
128+
129+
// clang-format off
130+
131+
#define CL_USE_DEPRECATED_OPENCL_1_0_APIS
120132
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
121133
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
122134
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS

tests/call_all.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/*******************************************************************************
2+
// Copyright (c) 2021-2023 Ben Ashbaugh
3+
//
4+
// SPDX-License-Identifier: MIT or Apache-2.0
5+
*/
6+
7+
/*
8+
// This file is generated from the Khronos OpenCL XML API Registry.
9+
*/
10+
11+
// clang-format off
12+
113
#define CL_USE_DEPRECATED_OPENCL_1_0_APIS
214
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
315
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS

tests/test_extension_loader.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*******************************************************************************
2+
// Copyright (c) 2021-2023 Ben Ashbaugh
3+
//
4+
// SPDX-License-Identifier: MIT or Apache-2.0
5+
*/
6+
7+
// clang-format off
8+
19
#include "call_all.c"
210

311
int main(int argc, char** argv)

tests/test_extension_loader.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*******************************************************************************
2+
// Copyright (c) 2021-2023 Ben Ashbaugh
3+
//
4+
// SPDX-License-Identifier: MIT or Apache-2.0
5+
*/
6+
7+
// clang-format off
8+
19
#include "call_all.c"
210

311
int main(int argc, char** argv)

0 commit comments

Comments
 (0)