[clang] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and clang-dxc (PR #120644)

2024-12-20 Thread Chris White via cfe-commits
https://github.com/whiteio updated https://github.com/llvm/llvm-project/pull/120644 >From 2d6d43abf0dfaa64a5cdd7bff3a3ecbef01635c2 Mon Sep 17 00:00:00 2001 From: Chris White Date: Thu, 19 Dec 2024 22:02:47 + Subject: [PATCH 1/2] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and cl

[clang] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and clang-dxc (PR #120644)

2024-12-20 Thread Chris White via cfe-commits
whiteio wrote: Thanks @Maetveis, I've addressed the comments. https://github.com/llvm/llvm-project/pull/120644 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and clang-dxc (PR #120644)

2024-12-20 Thread Chris White via cfe-commits
https://github.com/whiteio updated https://github.com/llvm/llvm-project/pull/120644 >From 770dec5aec1b879bafbc6c69b12a2e43c9497f7f Mon Sep 17 00:00:00 2001 From: Chris White Date: Thu, 19 Dec 2024 22:02:47 + Subject: [PATCH 1/2] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and cl

[clang] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and clang-dxc (PR #120644)

2024-12-19 Thread Chris White via cfe-commits
https://github.com/whiteio updated https://github.com/llvm/llvm-project/pull/120644 >From 770dec5aec1b879bafbc6c69b12a2e43c9497f7f Mon Sep 17 00:00:00 2001 From: Chris White Date: Thu, 19 Dec 2024 22:02:47 + Subject: [PATCH] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and clang-

[clang] [Clang-CL][DXC] Expose -fdiagnostic-color= to clang-cl and clang-dxc (PR #120644)

2024-12-19 Thread Chris White via cfe-commits
https://github.com/whiteio created https://github.com/llvm/llvm-project/pull/120644 Exposing `-fdiagnostic-color=` to clang-cl and clang-dxc. `-fcolor-diagnostics` and `-fno-color-diagnostics` are already allowed in both of these and `-fdiagnostics-color=` allows one additional value, `auto`.

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-12-05 Thread Chris White via cfe-commits
whiteio wrote: @Maetveis I've disabled that settings now. Thanks! https://github.com/llvm/llvm-project/pull/116871 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-12-04 Thread Chris White via cfe-commits
whiteio wrote: Hey @Maetveis, I've addressed the conflicts 👍 https://github.com/llvm/llvm-project/pull/116871 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-12-04 Thread Chris White via cfe-commits
https://github.com/whiteio updated https://github.com/llvm/llvm-project/pull/116871 >From 29330456191334afb6cd82ae44f496c522985877 Mon Sep 17 00:00:00 2001 From: Chris White Date: Tue, 19 Nov 2024 20:06:28 + Subject: [PATCH 1/3] [Clang] Fix -Wunused-private-field false negative with defaul

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-12-04 Thread Chris White via cfe-commits
https://github.com/whiteio updated https://github.com/llvm/llvm-project/pull/116871 >From 29330456191334afb6cd82ae44f496c522985877 Mon Sep 17 00:00:00 2001 From: Chris White Date: Tue, 19 Nov 2024 20:06:28 + Subject: [PATCH 1/3] [Clang] Fix -Wunused-private-field false negative with defaul

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-12-04 Thread Chris White via cfe-commits
whiteio wrote: @Maetveis Thanks for letting me know, I'll resolve the conflicts and let you know once they're resolved. https://github.com/llvm/llvm-project/pull/116871 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-11-23 Thread Chris White via cfe-commits
whiteio wrote: Thanks for that @Maetveis! I've updated the release notes. https://github.com/llvm/llvm-project/pull/116871 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-11-23 Thread Chris White via cfe-commits
https://github.com/whiteio updated https://github.com/llvm/llvm-project/pull/116871 >From ad14635ab12eb81a841db885962c95911722e4f2 Mon Sep 17 00:00:00 2001 From: Chris White Date: Tue, 19 Nov 2024 20:06:28 + Subject: [PATCH 1/3] [Clang] Fix -Wunused-private-field false negative with defaul

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-11-21 Thread Chris White via cfe-commits
https://github.com/whiteio edited https://github.com/llvm/llvm-project/pull/116871 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-11-21 Thread Chris White via cfe-commits
https://github.com/whiteio updated https://github.com/llvm/llvm-project/pull/116871 >From c69426607d63b3a0cf7d839c82cde55273a5f942 Mon Sep 17 00:00:00 2001 From: Chris White Date: Tue, 19 Nov 2024 20:06:28 + Subject: [PATCH 1/2] [Clang] Fix -Wunused-private-field false negative with defaul

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-11-21 Thread Chris White via cfe-commits
whiteio wrote: I'll update my changes to fix the other tests that are failing this evening, sorry about that, should have ran the rest of them after making the change. https://github.com/llvm/llvm-project/pull/116871 ___ cfe-commits mailing list cfe-c

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-11-20 Thread Chris White via cfe-commits
https://github.com/whiteio updated https://github.com/llvm/llvm-project/pull/116871 >From c69426607d63b3a0cf7d839c82cde55273a5f942 Mon Sep 17 00:00:00 2001 From: Chris White Date: Tue, 19 Nov 2024 20:06:28 + Subject: [PATCH 1/2] [Clang] Fix -Wunused-private-field false negative with defaul

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-11-20 Thread Chris White via cfe-commits
@@ -7535,7 +7535,7 @@ void Sema::CheckExplicitlyDefaultedFunction(Scope *S, FunctionDecl *FD) { return; } - if (DefKind.isComparison()) + if (DefKind.isComparison() && isa(FD->getDeclContext())) UnusedPrivateFields.clear(); whiteio wrote: Thanks

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-11-20 Thread Chris White via cfe-commits
@@ -20,6 +20,17 @@ class SpaceShipDefaultCompare { int operator<=>(const SpaceShipDefaultCompare &) const = default; }; +class UnusedConstPrivateField { + public: + UnusedConstPrivateField() : unused_(0) {} + private: + const int unused_; // expected-warning{{private field

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-11-19 Thread Chris White via cfe-commits
https://github.com/whiteio created https://github.com/llvm/llvm-project/pull/116871 Fix -Wunused-private-field incorrectly suppressing warnings for friend defaulted comparison operators. The warning should only be suppressed when the defaulted comparison is a class member function. Fixes #116