Commit 2933045
committed
[Clang] Fix -Wunused-private-field false negative with defaulted comparison operators
Fix -Wunused-private-field suppressing warnings when defaulted comparison
operators are declared as friend functions. The warning should only be
suppressed for comparison operators that are class members.
Fixes #1162701 parent 2e425bf commit 2933045
File tree
2 files changed
+12
-1
lines changed- clang
- lib/Sema
- test/SemaCXX
2 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7535 | 7535 | | |
7536 | 7536 | | |
7537 | 7537 | | |
7538 | | - | |
| 7538 | + | |
7539 | 7539 | | |
7540 | 7540 | | |
7541 | 7541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
| |||
0 commit comments