Skip to content

Commit 82b51c4

Browse files
committed
Prefix with __
1 parent 7321e12 commit 82b51c4

File tree

1 file changed

+64
-64
lines changed

1 file changed

+64
-64
lines changed

compiler-rt/include/sanitizer/container_overflow_defs.h

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ extern "C" {
6666
/// \note Unaligned <c><i>beg</i></c> or <c><i>end</i></c> may miss bugs in
6767
/// these granules.
6868
///
69-
/// \param beg Beginning of memory region.
70-
/// \param end End of memory region.
71-
/// \param old_mid Old middle of memory region.
72-
/// \param new_mid New middle of memory region.
69+
/// \param __beg Beginning of memory region.
70+
/// \param __end End of memory region.
71+
/// \param __old_mid Old middle of memory region.
72+
/// \param __new_mid New middle of memory region.
7373
#ifdef __SANITIZER_DISABLE_CONTAINER_OVERFLOW__
7474
__attribute__((__internal_linkage__)) inline void SANITIZER_CDECL
75-
__sanitizer_annotate_contiguous_container(const void *beg, const void *end,
76-
const void *old_mid,
77-
const void *new_mid) {}
75+
__sanitizer_annotate_contiguous_container(const void *__beg, const void *__end,
76+
const void *__old_mid,
77+
const void *__new_mid) {}
7878
#else
7979
void SANITIZER_CDECL __sanitizer_annotate_contiguous_container(
80-
const void *beg, const void *end, const void *old_mid, const void *new_mid);
80+
const void *__beg, const void *__end, const void *__old_mid, const void *__new_mid);
8181
#endif
8282

8383
/// Similar to <c>__sanitizer_annotate_contiguous_container</c>.
@@ -103,23 +103,23 @@ void SANITIZER_CDECL __sanitizer_annotate_contiguous_container(
103103
/// - old_container_beg_p == old_container_end_p
104104
/// During poisoning after last element was removed:
105105
/// - new_container_beg_p == new_container_end_p
106-
/// \param storage_beg Beginning of memory region.
107-
/// \param storage_end End of memory region.
108-
/// \param old_container_beg Old beginning of used region.
109-
/// \param old_container_end End of used region.
110-
/// \param new_container_beg New beginning of used region.
111-
/// \param new_container_end New end of used region.
106+
/// \param __storage_beg Beginning of memory region.
107+
/// \param __storage_end End of memory region.
108+
/// \param __old_container_beg Old beginning of used region.
109+
/// \param __old_container_end End of used region.
110+
/// \param __new_container_beg New beginning of used region.
111+
/// \param __new_container_end New end of used region.
112112
#ifdef __SANITIZER_DISABLE_CONTAINER_OVERFLOW__
113113
__attribute__((__internal_linkage__)) inline void
114114
SANITIZER_CDECL __sanitizer_annotate_double_ended_contiguous_container(
115-
const void *storage_beg, const void *storage_end,
116-
const void *old_container_beg, const void *old_container_end,
117-
const void *new_container_beg, const void *new_container_end) {}
115+
const void *__storage_beg, const void *__storage_end,
116+
const void *__old_container_beg, const void *__old_container_end,
117+
const void *__new_container_beg, const void *__new_container_end) {}
118118
#else
119119
void SANITIZER_CDECL __sanitizer_annotate_double_ended_contiguous_container(
120-
const void *storage_beg, const void *storage_end,
121-
const void *old_container_beg, const void *old_container_end,
122-
const void *new_container_beg, const void *new_container_end);
120+
const void *__storage_beg, const void *__storage_end,
121+
const void *__old_container_beg, const void *__old_container_end,
122+
const void *__new_container_beg, const void *__new_container_end);
123123
#endif
124124

125125
/// Copies memory annotations from a source storage region to a destination
@@ -151,20 +151,20 @@ void SANITIZER_CDECL __sanitizer_annotate_double_ended_contiguous_container(
151151
/// source region. Addresses may be granule-unaligned, but this may affect
152152
/// performance.
153153
///
154-
/// \param src_begin Begin of the source container region.
155-
/// \param src_end End of the source container region.
156-
/// \param dst_begin Begin of the destination container region.
157-
/// \param dst_end End of the destination container region.
154+
/// \param __src_begin Begin of the source container region.
155+
/// \param __src_end End of the source container region.
156+
/// \param __dst_begin Begin of the destination container region.
157+
/// \param __dst_end End of the destination container region.
158158
#ifdef __SANITIZER_DISABLE_CONTAINER_OVERFLOW__
159159
__attribute__((__internal_linkage__)) inline void SANITIZER_CDECL
160-
__sanitizer_copy_contiguous_container_annotations(const void *src_begin,
161-
const void *src_end,
162-
const void *dst_begin,
163-
const void *dst_end) {}
160+
__sanitizer_copy_contiguous_container_annotations(const void *__src_begin,
161+
const void *__src_end,
162+
const void *__dst_begin,
163+
const void *__dst_end) {}
164164
#else
165165
void SANITIZER_CDECL __sanitizer_copy_contiguous_container_annotations(
166-
const void *src_begin, const void *src_end, const void *dst_begin,
167-
const void *dst_end);
166+
const void *__src_begin, const void *__src_end, const void *__dst_begin,
167+
const void *__dst_end);
168168
#endif
169169

170170
/// Returns true if the contiguous container <c>[beg, end)</c> is properly
@@ -177,21 +177,21 @@ void SANITIZER_CDECL __sanitizer_copy_contiguous_container_annotations(
177177
/// to avoid such complexity by touching only parts of the container around
178178
/// <c><i>beg</i></c>, <c><i>mid</i></c>, and <c><i>end</i></c>.
179179
///
180-
/// \param beg Beginning of memory region.
181-
/// \param mid Middle of memory region.
182-
/// \param end Old end of memory region.
180+
/// \param __beg Beginning of memory region.
181+
/// \param __mid Middle of memory region.
182+
/// \param __end Old end of memory region.
183183
///
184184
/// \returns True if the contiguous container <c>[beg, end)</c> is properly
185185
/// poisoned.
186186
#ifdef __SANITIZER_DISABLE_CONTAINER_OVERFLOW__
187187
__attribute__((__internal_linkage__)) inline int
188-
SANITIZER_CDECL __sanitizer_verify_contiguous_container(const void *beg,
189-
const void *mid,
190-
const void *end) {}
188+
SANITIZER_CDECL __sanitizer_verify_contiguous_container(const void *__beg,
189+
const void *__mid,
190+
const void *__end) {}
191191
#else
192-
int SANITIZER_CDECL __sanitizer_verify_contiguous_container(const void *beg,
193-
const void *mid,
194-
const void *end);
192+
int SANITIZER_CDECL __sanitizer_verify_contiguous_container(const void *__beg,
193+
const void *__mid,
194+
const void *__end);
195195
#endif
196196

197197
/// Returns true if the double ended contiguous
@@ -207,66 +207,66 @@ int SANITIZER_CDECL __sanitizer_verify_contiguous_container(const void *beg,
207207
/// <c><i>container_beg</i></c>, <c><i>container_end</i></c>, and
208208
/// <c><i>storage_end</i></c>.
209209
///
210-
/// \param storage_beg Beginning of memory region.
211-
/// \param container_beg Beginning of used region.
212-
/// \param container_end End of used region.
213-
/// \param storage_end End of memory region.
210+
/// \param __storage_beg Beginning of memory region.
211+
/// \param __container_beg Beginning of used region.
212+
/// \param __container_end End of used region.
213+
/// \param __storage_end End of memory region.
214214
///
215215
/// \returns True if the double-ended contiguous container <c>[storage_beg,
216216
/// container_beg, container_end, end)</c> is properly poisoned - only
217217
/// [container_beg; container_end) is addressable.
218218
#ifdef __SANITIZER_DISABLE_CONTAINER_OVERFLOW__
219219
__attribute__((__internal_linkage__)) inline int SANITIZER_CDECL
220-
__sanitizer_verify_double_ended_contiguous_container(const void *storage_beg,
221-
const void *container_beg,
222-
const void *container_end,
223-
const void *storage_end) {}
220+
__sanitizer_verify_double_ended_contiguous_container(const void *__storage_beg,
221+
const void *__container_beg,
222+
const void *__container_end,
223+
const void *__storage_end) {}
224224
#else
225225
int SANITIZER_CDECL __sanitizer_verify_double_ended_contiguous_container(
226-
const void *storage_beg, const void *container_beg,
227-
const void *container_end, const void *storage_end);
226+
const void *__storage_beg, const void *__container_beg,
227+
const void *__container_end, const void *__storage_end);
228228
#endif
229229

230230
/// Similar to <c>__sanitizer_verify_contiguous_container()</c> but also
231231
/// returns the address of the first improperly poisoned byte.
232232
///
233233
/// Returns NULL if the area is poisoned properly.
234234
///
235-
/// \param beg Beginning of memory region.
236-
/// \param mid Middle of memory region.
237-
/// \param end Old end of memory region.
235+
/// \param __beg Beginning of memory region.
236+
/// \param __mid Middle of memory region.
237+
/// \param __end Old end of memory region.
238238
///
239239
/// \returns The bad address or NULL.
240240
#ifdef __SANITIZER_DISABLE_CONTAINER_OVERFLOW__
241241
__attribute__((__internal_linkage__)) inline const void *SANITIZER_CDECL
242-
__sanitizer_contiguous_container_find_bad_address(const void *beg,
243-
const void *mid,
244-
const void *end) {}
242+
__sanitizer_contiguous_container_find_bad_address(const void *__beg,
243+
const void *__mid,
244+
const void *__end) {}
245245
#else
246246
const void *SANITIZER_CDECL __sanitizer_contiguous_container_find_bad_address(
247-
const void *beg, const void *mid, const void *end);
247+
const void *__beg, const void *__mid, const void *__end);
248248
#endif
249249

250250
/// returns the address of the first improperly poisoned byte.
251251
///
252252
/// Returns NULL if the area is poisoned properly.
253253
///
254-
/// \param storage_beg Beginning of memory region.
255-
/// \param container_beg Beginning of used region.
256-
/// \param container_end End of used region.
257-
/// \param storage_end End of memory region.
254+
/// \param __storage_beg Beginning of memory region.
255+
/// \param __container_beg Beginning of used region.
256+
/// \param __container_end End of used region.
257+
/// \param __storage_end End of memory region.
258258
///
259259
/// \returns The bad address or NULL.
260260
#ifdef __SANITIZER_DISABLE_CONTAINER_OVERFLOW__
261261
__attribute__((__internal_linkage__)) inline const void *SANITIZER_CDECL
262262
__sanitizer_double_ended_contiguous_container_find_bad_address(
263-
const void *storage_beg, const void *container_beg,
264-
const void *container_end, const void *storage_end) {}
263+
const void *__storage_beg, const void *__container_beg,
264+
const void *__container_end, const void *__storage_end) {}
265265
#else
266266
const void *SANITIZER_CDECL
267267
__sanitizer_double_ended_contiguous_container_find_bad_address(
268-
const void *storage_beg, const void *container_beg,
269-
const void *container_end, const void *storage_end);
268+
const void *__storage_beg, const void *__container_beg,
269+
const void *__container_end, const void *__storage_end);
270270
#endif
271271

272272
#ifdef __cplusplus

0 commit comments

Comments
 (0)