Commit 2dfaf28
committed
Remove BINJI_HACK workarounds for WASI nullability issues
This commit removes all BINJI_HACK workarounds that were added to suppress
nullability warnings in WASI/POSIX code. These workarounds are no longer
needed as we now build for standard Linux/macOS targets with full POSIX
support, rather than WASI which has limited platform APIs.
Key changes:
- Removed WASIStubs.cpp entirely (no longer needed)
- Cleaned up nullability suppressions in Unix/*.inc platform files
- Removed workarounds from threading primitives (Mutex, RWMutex, ThreadPool, Parallel)
- Simplified raw_socket_stream.cpp by removing WASI-specific code paths
- Removed cmake workarounds for atomic and compiler version checks
- Updated .gitignore to exclude .o files
- Cleaned up nullsafe-headers README to focus on core functionality
The codebase now builds cleanly with strict nullability checking enabled.
Tests pass: clang/test/Sema/strict-nullability.c ✓1 parent b5ec04b commit 2dfaf28
File tree
56 files changed
+45
-713
lines changed- clang
- include/clang/Basic
- lib/Frontend
- nullsafe-headers
- llvm
- cmake/modules
- include/llvm
- ADT
- IR
- LTO
- Support
- lib
- DebugInfo/DWARF
- LTO
- Support
- Unix
- TargetParser
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+45
-713
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | 180 | | |
182 | | - | |
183 | 181 | | |
184 | 182 | | |
185 | 183 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 110 | | |
116 | 111 | | |
117 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | 162 | | |
164 | | - | |
165 | 163 | | |
166 | 164 | | |
167 | 165 | | |
| |||
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
174 | | - | |
175 | 172 | | |
176 | | - | |
177 | 173 | | |
178 | 174 | | |
179 | 175 | | |
180 | 176 | | |
181 | 177 | | |
182 | | - | |
183 | 178 | | |
184 | | - | |
185 | 179 | | |
186 | 180 | | |
187 | 181 | | |
188 | 182 | | |
189 | 183 | | |
190 | 184 | | |
191 | | - | |
192 | 185 | | |
193 | | - | |
194 | 186 | | |
195 | 187 | | |
196 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 86 | | |
163 | 87 | | |
164 | | - | |
165 | | - | |
| 88 | + | |
| 89 | + | |
166 | 90 | | |
167 | 91 | | |
168 | 92 | | |
169 | 93 | | |
170 | 94 | | |
171 | 95 | | |
172 | 96 | | |
173 | | - | |
| 97 | + | |
174 | 98 | | |
175 | 99 | | |
176 | 100 | | |
| |||
181 | 105 | | |
182 | 106 | | |
183 | 107 | | |
184 | | - | |
| 108 | + | |
185 | 109 | | |
186 | 110 | | |
187 | | - | |
| 111 | + | |
188 | 112 | | |
189 | | - | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
| |||
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 79 | | |
86 | 80 | | |
87 | 81 | | |
| |||
0 commit comments