Skip to content

Commit 666c853

Browse files
committed
PR: Fix incorrect C++ style comments
1 parent bdd4da2 commit 666c853

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

compiler-rt/lib/radsan/radsan_interceptors.cpp

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ void ExpectNotRealtime(const char *InterceptedFunctionName) {
4646
}
4747
} // namespace __radsan
4848

49-
/*
50-
Filesystem
51-
*/
49+
// Filesystem
5250

5351
INTERCEPTOR(int, open, const char *path, int oflag, ...) {
5452
// TODO Establish whether we should intercept here if the flag contains
@@ -121,19 +119,13 @@ INTERCEPTOR(int, fputs, const char *s, FILE *stream) {
121119
return REAL(fputs)(s, stream);
122120
}
123121

124-
/*
125-
Streams
126-
*/
127-
122+
// Streams
128123
INTERCEPTOR(int, puts, const char *s) {
129124
__radsan::ExpectNotRealtime("puts");
130125
return REAL(puts)(s);
131126
}
132127

133-
/*
134-
Concurrency
135-
*/
136-
128+
// Concurrency
137129
#if SANITIZER_APPLE
138130
#pragma clang diagnostic push
139131
// OSSpinLockLock is deprecated, but still in use in libc++
@@ -213,9 +205,7 @@ INTERCEPTOR(int, pthread_rwlock_wrlock, pthread_rwlock_t *lock) {
213205
return REAL(pthread_rwlock_wrlock)(lock);
214206
}
215207

216-
/*
217-
Sleeping
218-
*/
208+
// Sleeping
219209

220210
INTERCEPTOR(unsigned int, sleep, unsigned int s) {
221211
__radsan::ExpectNotRealtime("sleep");
@@ -233,9 +223,7 @@ INTERCEPTOR(int, nanosleep, const struct timespec *rqtp,
233223
return REAL(nanosleep)(rqtp, rmtp);
234224
}
235225

236-
/*
237-
Memory
238-
*/
226+
// Memory
239227

240228
INTERCEPTOR(void *, calloc, SIZE_T num, SIZE_T size) {
241229
__radsan::ExpectNotRealtime("calloc");
@@ -298,10 +286,7 @@ INTERCEPTOR(void *, pvalloc, size_t size) {
298286
}
299287
#endif
300288

301-
/*
302-
Sockets
303-
*/
304-
289+
// Sockets
305290
INTERCEPTOR(int, socket, int domain, int type, int protocol) {
306291
__radsan::ExpectNotRealtime("socket");
307292
return REAL(socket)(domain, type, protocol);
@@ -345,10 +330,7 @@ INTERCEPTOR(int, shutdown, int socket, int how) {
345330
return REAL(shutdown)(socket, how);
346331
}
347332

348-
/*
349-
Preinit
350-
*/
351-
333+
// Preinit
352334
namespace __radsan {
353335
void InitializeInterceptors() {
354336
INTERCEPT_FUNCTION(calloc);

0 commit comments

Comments
 (0)