Debian Codegraph @

clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/static-accessed-through-instance/__clang_cuda_builtin_vars.h

raw
1 //===--- __clang_cuda_builtin_vars.h - Stub header for tests ----*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 #ifndef ___CLANG_CUDA_BUILTIN_VARS_H_
10 #define ___CLANG_CUDA_BUILTIN_VARS_H_
11
12 #define __CUDA_DEVICE_BUILTIN(FIELD) \
13 static unsigned int FIELD;
14
15 struct __cuda_builtin_threadIdx_t {
16 __CUDA_DEVICE_BUILTIN(x);
17 };
18
19 struct __cuda_builtin_blockIdx_t {
20 __CUDA_DEVICE_BUILTIN(x);
21 };
22
23 struct __cuda_builtin_blockDim_t {
24 __CUDA_DEVICE_BUILTIN(x);
25 };
26
27 struct __cuda_builtin_gridDim_t {
28 __CUDA_DEVICE_BUILTIN(x);
29 };
30
31 __cuda_builtin_threadIdx_t threadIdx;
32 __cuda_builtin_blockIdx_t blockIdx;
33 __cuda_builtin_blockDim_t blockDim;
34 __cuda_builtin_gridDim_t gridDim;
35
36 #endif // ___CLANG_CUDA_BUILTIN_VARS_H_