Commit ad14635
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 aa2d084 commit ad14635
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 | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
24 | 35 | | |
25 | 36 | | |
| |||
0 commit comments