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 8dfeec8 commit c591851Copy full SHA for c591851
clang/test/Analysis/Inputs/system-header-simulator-cxx-std-locks.h
@@ -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
-
6
#pragma clang system_header
+
7
namespace std {
8
struct mutex {
9
- void lock() {}
10
- void unlock() {}
+ void lock();
+ void unlock();
11
};
12
13
template <typename T> struct lock_guard {
14
- lock_guard<T>(std::mutex) {}
15
- ~lock_guard<T>() {}
+ lock_guard(std::mutex &);
+ ~lock_guard();
16
17
} // namespace std
0 commit comments