We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f374adc commit ddab5d5Copy full SHA for ddab5d5
clang/test/CodeGen/builtin-align.c
@@ -40,7 +40,7 @@
40
#error MISSING TYPE
41
#endif
42
43
-#ifndef __CHERI__
+#if !__has_feature(capabilities)
44
#define __capability
45
46
clang/test/SemaCXX/cheri/cheri-pointer-cast.cpp
@@ -9,7 +9,7 @@ typedef unsigned long ulong;
9
10
int foo;
11
12
-#ifdef __CHERI__
+#if __has_feature(capabilities)
13
#define CAP __capability
14
#else
15
#define CAP
@@ -68,7 +68,7 @@ int main() {
68
}
69
70
// Check that we don't warn on dependent types
71
72
template <typename T>
73
long offset_get(T x) {
74
return __builtin_cheri_offset_get(reinterpret_cast<void * __capability>(x));
0 commit comments