Skip to content

Commit c591851

Browse files
committed
Cleanup header simulator
1 parent 8dfeec8 commit c591851

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
// This is a fake system header with divide-by-zero bugs introduced in
2-
// c++ std library functions. We use these bugs to test hard-coded
3-
// suppression of diagnostics within standard library functions that are known
4-
// to produce false positives.
5-
61
#pragma clang system_header
2+
73
namespace std {
84
struct mutex {
9-
void lock() {}
10-
void unlock() {}
5+
void lock();
6+
void unlock();
117
};
128

139
template <typename T> struct lock_guard {
14-
lock_guard<T>(std::mutex) {}
15-
~lock_guard<T>() {}
10+
lock_guard(std::mutex &);
11+
~lock_guard();
1612
};
1713
} // namespace std

0 commit comments

Comments
 (0)