Commit eb95419
committed
CON50-CPP: Mutexes do not have destructors in most real libraries
Mark ~mutex() as deleted, as that is what we see in real libraries.
Also modify lock_guard. This didn't have any affect on the test, but retained
to ensure we better reflect real compilers.1 parent e70089f commit eb95419
2 files changed
Lines changed: 7 additions & 6 deletions
File tree
- cpp/common/test
- includes/standard-library
- rules/donotdestroyamutexwhileitislocked
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
cpp/common/test/rules/donotdestroyamutexwhileitislocked/DoNotDestroyAMutexWhileItIsLocked.expected
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | | - | |
4 | 2 | | |
5 | | - | |
6 | 3 | | |
0 commit comments