Skip to content

Commit 397d790

Browse files
AlexeySachkovvmaksimo
authored andcommitted
Reduce amount of noise from clang-tidy
When we do some changes to `include/LLVMSPIRVExtension.inc`, clang-tidy complains about undefined `EXT` macro, because it looks at the file alone, while it was designed to be included from another file where `EXT` is defined. In order to fix this constant complain, let's add a dummy definition of `EXT` macro instead of using `#error` directive.
1 parent b24a5d4 commit 397d790

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm-spirv/include/LLVMSPIRVExtensions.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
21
#ifndef EXT
3-
#error "EXT macro must be defined"
2+
#define EXT(X)
43
#endif
54

65
EXT(SPV_EXT_shader_atomic_float_add)

0 commit comments

Comments
 (0)