[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-22 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/97619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-19 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov approved this pull request. LGTM as well. https://github.com/llvm/llvm-project/pull/97619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-19 Thread via cfe-commits
https://github.com/premanandrao updated https://github.com/llvm/llvm-project/pull/97619 >From e1076942f07b1d2de857688c88de6ff966861650 Mon Sep 17 00:00:00 2001 From: Premanand M Rao Date: Wed, 3 Jul 2024 11:20:42 -0700 Subject: [PATCH 1/4] [clang] Diagnose use of deprecated template alias Issu

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/97619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-18 Thread via cfe-commits
@@ -0,0 +1,72 @@ +// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// +// This test checks that a deprecated attribute on an alias +// template triggers a warning diagnostic when it is used. + +template +struct NoAttr { + void foo() {} +}; + +// expected-note@+2 5{{'Using

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-18 Thread via cfe-commits
https://github.com/premanandrao updated https://github.com/llvm/llvm-project/pull/97619 >From e1076942f07b1d2de857688c88de6ff966861650 Mon Sep 17 00:00:00 2001 From: Premanand M Rao Date: Wed, 3 Jul 2024 11:20:42 -0700 Subject: [PATCH 1/4] [clang] Diagnose use of deprecated template alias Issu

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-18 Thread via cfe-commits
https://github.com/premanandrao updated https://github.com/llvm/llvm-project/pull/97619 >From e1076942f07b1d2de857688c88de6ff966861650 Mon Sep 17 00:00:00 2001 From: Premanand M Rao Date: Wed, 3 Jul 2024 11:20:42 -0700 Subject: [PATCH 1/3] [clang] Diagnose use of deprecated template alias Issu

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-18 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,72 @@ +// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// +// This test checks that a deprecated attribute on an alias +// template triggers a warning diagnostic when it is used. + +template +struct NoAttr { + void foo() {} +}; + +// expected-note@+2 5{{'Using

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Thank you for this, the changes should also come with a release note in clang/docs/ReleaseNotes.rst so users know about the improvement. Changes generally LG, but I did have some test suggestions. https://github.com/llvm/llvm-project/pull/97619 __

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/97619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-16 Thread via cfe-commits
@@ -0,0 +1,58 @@ +// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// +// This test checks that a deprecated attribute on an alias +// template triggers a warning diagnostic when it is used. + +template +struct NoAttr { + void foo() {} +}; + +// expected-note@+2 5{{'Using

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-16 Thread via cfe-commits
https://github.com/premanandrao updated https://github.com/llvm/llvm-project/pull/97619 >From e1076942f07b1d2de857688c88de6ff966861650 Mon Sep 17 00:00:00 2001 From: Premanand M Rao Date: Wed, 3 Jul 2024 11:20:42 -0700 Subject: [PATCH 1/2] [clang] Diagnose use of deprecated template alias Issu

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-16 Thread Tom Honermann via cfe-commits
@@ -0,0 +1,58 @@ +// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// +// This test checks that a deprecated attribute on an alias +// template triggers a warning diagnostic when it is used. + +template +struct NoAttr { + void foo() {} +}; + +// expected-note@+2 5{{'Using

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-16 Thread Louis Dionne via cfe-commits
ldionne wrote: @premanandrao There are instructions here: https://libcxx.llvm.org/BuildingLibcxx.html#bootstrapping-build You can also use e.g. `run-buildbot` for this job: https://github.com/llvm/llvm-project/blob/c7961538ff5c73ad03cbf2470e56cdc10cedc83b/libcxx/utils/ci/run-buildbot#L366 You

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-12 Thread via cfe-commits
premanandrao wrote: > I just ran the bootstrapping build with this patch applied and ran > `check-runtimes`, and nothing failed. This might not be sufficient (perhaps I > missed something important), but at first glance it doesn't seem to break > anything on our side. Thank you SO much! Wo

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-12 Thread Louis Dionne via cfe-commits
ldionne wrote: I just ran the bootstrapping build with this patch applied and ran `check-runtimes`, and nothing failed. This might not be sufficient (perhaps I missed something important), but at first glance it doesn't seem to break anything on our side. https://github.com/llvm/llvm-project/

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-12 Thread via cfe-commits
cor3ntin wrote: @ldionne https://github.com/llvm/llvm-project/pull/97619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-03 Thread via cfe-commits
premanandrao wrote: > For reference, see https://reviews.llvm.org/D136533 for similar expansion of > diagnostics for uses of declarations, and how that lead to trouble in MacOS > land. > I'd suggest building libc++ on MacOS, to be sure this won't cause regressions > and a future revert. Thank

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-03 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: For reference, see https://reviews.llvm.org/D136533 for similar expansion of diagnostics for uses of declarations, and how that lead to trouble in MacOS land. I'd suggest building libc++ on MacOS, to be sure this won't cause regressions and a future revert. I have a MacOS mac

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (premanandrao) Changes Issue a warning diagnostic when a template alias with a deprecated attribute is used. --- Full diff: https://github.com/llvm/llvm-project/pull/97619.diff 3 Files Affected: - (modified) clang/lib/Sema/SemaAva

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-03 Thread via cfe-commits
https://github.com/premanandrao created https://github.com/llvm/llvm-project/pull/97619 Issue a warning diagnostic when a template alias with a deprecated attribute is used. >From e1076942f07b1d2de857688c88de6ff966861650 Mon Sep 17 00:00:00 2001 From: Premanand M Rao Date: Wed, 3 Jul 2024 11: