[clang] [llvm] [NVPTX] Add support for PTX 8.6 and CUDA 12.6 (12.8) (PR #123398)

2025-01-19 Thread Sergey Kozub via cfe-commits
@@ -682,6 +688,9 @@ void NVPTX::getNVPTXTargetFeatures(const Driver &D, const llvm::Triple &Triple, case CudaVersion::CUDA_##CUDA_VER: \ PtxFeature = "+ptx" #PTX_VER; \ break; +

[clang] [llvm] [NVPTX] Add support for PTX 8.6 and CUDA 12.6 (12.8) (PR #123398)

2025-01-19 Thread Sergey Kozub via cfe-commits
https://github.com/sergey-kozub updated https://github.com/llvm/llvm-project/pull/123398 >From 04313ede76d272ec391361b9828e55d8a27b4bda Mon Sep 17 00:00:00 2001 From: Sergey Kozub Date: Fri, 17 Jan 2025 21:00:49 + Subject: [PATCH] Add support for PTX 8.6 and CUDA 12.6 (12.8) --- clang/inc

[clang] 6972788 - [clang][bytecode] Fix discarding DerivedToBase casts (#123523)

2025-01-19 Thread via cfe-commits
Author: Timm Baeder Date: 2025-01-20T08:55:54+01:00 New Revision: 6972788bf3d330b7a6136e2ddd840782882b8dd0 URL: https://github.com/llvm/llvm-project/commit/6972788bf3d330b7a6136e2ddd840782882b8dd0 DIFF: https://github.com/llvm/llvm-project/commit/6972788bf3d330b7a6136e2ddd840782882b8dd0.diff L

[clang] [clang][bytecode] Fix discarding DerivedToBase casts (PR #123523)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/123523 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode][NFC] Use FixedPoint opaque int API (PR #123522)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/123522 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 046b064 - [clang][bytecode][NFC] Use FixedPoint opaque int API (#123522)

2025-01-19 Thread via cfe-commits
Author: Timm Baeder Date: 2025-01-20T08:44:59+01:00 New Revision: 046b064df0ac9d4530e79f11077a768383b1ca16 URL: https://github.com/llvm/llvm-project/commit/046b064df0ac9d4530e79f11077a768383b1ca16 DIFF: https://github.com/llvm/llvm-project/commit/046b064df0ac9d4530e79f11077a768383b1ca16.diff L

[clang] [Clang][MIPS] Create correct linker arguments for Windows toolchains (PR #121041)

2025-01-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/13136 Here is th

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread Younan Zhang via cfe-commits
@@ -422,7 +425,15 @@ std::vector HeuristicResolverImpl::resolveDependentMember( if (!RD->hasDefinition()) return {}; RD = RD->getDefinition(); -return lookupDependentName(RD, Name, Filter); +return lookupDependentName(RD, Name, [&](const NamedDecl *ND) {

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/123551 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. Just a thought from my side, but not required at the moment because this aims to be as simple as possible. Otherwise LGTM https://github.com/llvm/llvm-project/pull/123551 ___ cfe-commits mailing l

[clang] [clang-tools-extra] [clang][CodeComplete] Use HeuristicResolver to resolve pointee types (PR #121315)

2025-01-19 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Rebased on top of #123549. (I forgot to set up the stacking properly, so the commits from #123549 show up here too. They will go away after #123549 merges and I rebase again.) Confirmed locally that `Clang.Index/complete-memfunc-cvquals.cpp` is now passing. https://gith

[clang] [clang-tools-extra] [clang][CodeComplete] Use HeuristicResolver to resolve pointee types (PR #121315)

2025-01-19 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/121315 >From 6cd526368a02fa2cf2e764eee295d356f73c3c1a Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Mon, 20 Jan 2025 01:52:24 -0500 Subject: [PATCH 1/3] Upgrade HeuristicResolver to use QualType rather than

[clang] 71d6287 - [Clang][MIPS] Create correct linker arguments for Windows toolchains (#121041)

2025-01-19 Thread via cfe-commits
Author: Hervé Poussineau Date: 2025-01-20T15:11:26+08:00 New Revision: 71d6287f5b1e65466de5fe5c093852fa7903cdbe URL: https://github.com/llvm/llvm-project/commit/71d6287f5b1e65466de5fe5c093852fa7903cdbe DIFF: https://github.com/llvm/llvm-project/commit/71d6287f5b1e65466de5fe5c093852fa7903cdbe.di

[clang] [Clang][MIPS] Create correct linker arguments for Windows toolchains (PR #121041)

2025-01-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa closed https://github.com/llvm/llvm-project/pull/121041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: For ease of review, I split the PR into two patches (which I plan to squash): * The first patch is mechanical changes to use and propagate `QualType` rather than `Type *` in HeuristicResolver interfaces (both public and internal), where it makes sense. * The second patch

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/llvm/llvm-project/issues/123549 --- Full diff: https://github.com/llvm/llvm-project/pull/123551.diff 5 Files Affected: - (modified) clang-tools-extra/clangd/FindTarget.cpp

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/llvm/llvm-project/issues/123549 --- Full diff: https://github.com/llvm/llvm-project/pull/123551.diff 5 Files Affected: - (modified) clang-tools-extra/clangd/Find

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/llvm/llvm-project/issues/123549 --- Full diff: https://github.com/llvm/llvm-project/pull/123551.diff 5 Files Affected: - (modified) clang-tools-extra/clangd/FindTarget.cpp (

[clang] [clang-tools-extra] [clang][Sema] Respect const-qualification of methods in heuristic results (PR #123551)

2025-01-19 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/123551 Fixes https://github.com/llvm/llvm-project/issues/123549 >From cd87f05f19f245e24f5c29b97af0b69266608d7a Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Mon, 20 Jan 2025 01:52:24 -0500 Subject: [PATCH 1

[clang] Make armv6 iOS by default instead of macOS when targeting Darwin (PR #117243)

2025-01-19 Thread Jon Roelofs via cfe-commits
jroelofs wrote: cc @ian-twilightcoder https://github.com/llvm/llvm-project/pull/117243 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] No longer require complete types with __builtin_launder (PR #91070)

2025-01-19 Thread via cfe-commits
cor3ntin wrote: > I don't think that's actually intended though. Are you saying we should open a LWG issue? https://github.com/llvm/llvm-project/pull/91070 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

[clang] [clang-tools-extra] [clang][CodeComplete] Use HeuristicResolver to resolve pointee types (PR #121315)

2025-01-19 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > This made me realize that `HeuristicResolver::getPointeeType()` actually has > a deficiency where it incorrectly discards the cv-qualifiers of the returned > pointee type. I'll fix that in a dependent patch before proceeding with this. Filed https://github.com/llvm/llvm

[clang] [llvm] Add the initializes attribute inference (PR #117104)

2025-01-19 Thread Haopeng Liu via cfe-commits
haopliu wrote: Thanks for reporting this crash and the fixing, @fhahn! https://github.com/llvm/llvm-project/pull/117104 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [ASTMatchers][NFC] use `Matcher` instead of `DynTypedMatcher` in `TypeLocTypeMatcher` (PR #123450)

2025-01-19 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: I don't really have enough experience with the AST matcher implementations to provide an authoritative review of this, sorry. I did do some digging in the code history, and found that `TypeLocTypeMatcher` did store a `Matcher` in the past. That was changed in https://git

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Younan Zhang via cfe-commits
@@ -191,4 +192,4 @@ int g = sfinae_me(); // expected-error{{no matching function for call to 's namespace NullExceptionDecl { template auto get = []() { try { } catch(...) {}; return I; }; // expected-error{{initializer contains unexpanded parameter pack 'I'}} -} +}

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Younan Zhang via cfe-commits
@@ -13464,6 +13464,14 @@ Decl *Sema::ActOnAliasDeclaration(Scope *S, AccessSpecifier AS, } TemplateParameterList *TemplateParams = TemplateParamLists[0]; +// Check shadowing of a template parameter name +for (NamedDecl *TP : TemplateParams->asArray()) { +

[clang] [lldb] [llvm] Patch series to reapply #118734 and substantially improve it (PR #120534)

2025-01-19 Thread Chandler Carruth via cfe-commits
chandlerc wrote: > Some good news, everything seems to pass after your latest changes in this > PR! I didn't believe it at first and did a clean rebuild and test to verify. > In the end everything passed again. > > That being said, I am working on deploying an updated version of VS2019 to > o

[clang] [lldb] [llvm] [StrTable] Switch intrinsics to StringTable and work around MSVC (PR #123548)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-adt @llvm/pr-subscribers-clang Author: Chandler Carruth (chandlerc) Changes **Note:** This PR depends on #123302 and #123308 -- only the last of the three commits should be reviewed here. --- Historically, the main example of *very* large string

[clang] [lldb] [llvm] [StrTable] Switch intrinsics to StringTable and work around MSVC (PR #123548)

2025-01-19 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc created https://github.com/llvm/llvm-project/pull/123548 **Note:** This PR depends on #123302 and #123308 -- only the last of the three commits should be reviewed here. --- Historically, the main example of *very* large string tables used the `EmitCharArray` to wo

[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)

2025-01-19 Thread via cfe-commits
leijurv wrote: Thank you for the review owenca, those are very reasonable changes, particularly on the conditions where the BreakBeforeClosingAngle gets set/used! https://github.com/llvm/llvm-project/pull/118046 ___ cfe-commits mailing list cfe-commit

[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)

2025-01-19 Thread via cfe-commits
https://github.com/leijurv updated https://github.com/llvm/llvm-project/pull/118046 >From 1caf823165b16f6701993d586df51d5cdbf0885e Mon Sep 17 00:00:00 2001 From: Leijurv Date: Fri, 29 Nov 2024 21:54:36 -0600 Subject: [PATCH 01/12] [clang-format] Add BreakBeforeTemplateClose option --- clang/d

[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)

2025-01-19 Thread via cfe-commits
https://github.com/leijurv updated https://github.com/llvm/llvm-project/pull/118046 >From 1caf823165b16f6701993d586df51d5cdbf0885e Mon Sep 17 00:00:00 2001 From: Leijurv Date: Fri, 29 Nov 2024 21:54:36 -0600 Subject: [PATCH 01/11] [clang-format] Add BreakBeforeTemplateClose option --- clang/d

[clang] [StrTable] Mechanically convert NVPTX builtins to use TableGen (PR #122873)

2025-01-19 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc edited https://github.com/llvm/llvm-project/pull/122873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][FreeBSD] Remove FreeBSD/loongarch32 support (PR #122515)

2025-01-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/11996 Here is the r

[clang] First PR to llvm, adding feature for issue (PR #123543)

2025-01-19 Thread via cfe-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Discourse](https://discourse.llvm.org/t/hidden-email

[clang] [Driver][FreeBSD] Remove FreeBSD/loongarch32 support (PR #122515)

2025-01-19 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/122515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4294fe1 - [Driver][FreeBSD] Remove FreeBSD/loongarch32 support (#122515)

2025-01-19 Thread via cfe-commits
Author: Brad Smith Date: 2025-01-19T22:23:11-05:00 New Revision: 4294fe173e9696a4c090857fa0766cd44c1964dc URL: https://github.com/llvm/llvm-project/commit/4294fe173e9696a4c090857fa0766cd44c1964dc DIFF: https://github.com/llvm/llvm-project/commit/4294fe173e9696a4c090857fa0766cd44c1964dc.diff LO

[clang] [Driver][FreeBSD] Remove FreeBSD/loongarch32 support (PR #122515)

2025-01-19 Thread Lu Weining via cfe-commits
https://github.com/SixWeining approved this pull request. LGTM for the LoongArch changes. https://github.com/llvm/llvm-project/pull/122515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] First PR to llvm, adding feature for issue (PR #123543)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (Shakil582) Changes resolves #43831 I'll test it a bit more tomorrow. I think I saw something weird with the --offset functionality when testing, but my additions worked for the test cases I gave it. --- Full diff: https:

[clang] First PR to llvm, adding feature for issue (PR #123543)

2025-01-19 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] First PR to llvm, adding feature for issue (PR #123543)

2025-01-19 Thread via cfe-commits
https://github.com/Shakil582 created https://github.com/llvm/llvm-project/pull/123543 resolves #43831 I'll test it a bit more tomorrow. I think I saw something weird with the --offset functionality when testing, but my additions worked for the test cases I gave it. >From 4dc0383b366b3105a

[clang] [Driver][FreeBSD] Remove FreeBSD/loongarch32 support (PR #122515)

2025-01-19 Thread Brad Smith via cfe-commits
@@ -228,11 +228,8 @@ class LLVM_LIBRARY_VISIBILITY FreeBSDTargetInfo : public OSTargetInfo { case llvm::Triple::arm: this->MCountName = "__mcount"; break; -case llvm::Triple::riscv32: brad0 wrote: Yes, I mentioned it in the comment. https

[clang] [llvm] [AArch64] FEAT_SPEv1p2 is optional in v8.7-A and v9.2-A (PR #123336)

2025-01-19 Thread Kinoshita Kotaro via cfe-commits
kinoshita-fj wrote: Because FUJITSU-MONAKA doesn't support FEAT_SPEv1p2, please remove it. https://github.com/llvm/llvm-project/pull/123336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] b08b563 - [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (#123519)

2025-01-19 Thread via cfe-commits
Author: Alex Voicu Date: 2025-01-20T02:30:29Z New Revision: b08b56381cb4c24f37afba793dc872b6d721d9f7 URL: https://github.com/llvm/llvm-project/commit/b08b56381cb4c24f37afba793dc872b6d721d9f7 DIFF: https://github.com/llvm/llvm-project/commit/b08b56381cb4c24f37afba793dc872b6d721d9f7.diff LOG: [N

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx closed https://github.com/llvm/llvm-project/pull/123519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][FreeBSD] Remove FreeBSD/loongarch32 support (PR #122515)

2025-01-19 Thread Lu Weining via cfe-commits
@@ -228,11 +228,8 @@ class LLVM_LIBRARY_VISIBILITY FreeBSDTargetInfo : public OSTargetInfo { case llvm::Triple::arm: this->MCountName = "__mcount"; break; -case llvm::Triple::riscv32: SixWeining wrote: Do you want to remove riscv32 either?

[clang] [cindex] Add API to query the class methods of a type (PR #123539)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Trevor Laughlin (trelau) Changes Inspired by https://github.com/llvm/llvm-project/pull/120300, add a new API `clang_visitCXXMethods` to libclang (and the Python bindings) which allows iterating over the class methods of a type. --- Full

[clang] [cindex] Add API to query the class methods of a type (PR #123539)

2025-01-19 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [cindex] Add API to query the class methods of a type (PR #123539)

2025-01-19 Thread Trevor Laughlin via cfe-commits
https://github.com/trelau created https://github.com/llvm/llvm-project/pull/123539 Inspired by https://github.com/llvm/llvm-project/pull/120300, add a new API `clang_visitCXXMethods` to libclang (and the Python bindings) which allows iterating over the class methods of a type. >From bb0542e8f

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA ready_for_review https://github.com/llvm/llvm-project/pull/123533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA edited https://github.com/llvm/llvm-project/pull/123533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA updated https://github.com/llvm/llvm-project/pull/123533 >From e451a8869420d9240f9006eb2adb599a3e6fd9f8 Mon Sep 17 00:00:00 2001 From: Valentyn Yukhymenko Date: Sun, 19 Jan 2025 23:13:46 + Subject: [PATCH] [Clang] Reject declaring an alias template with the sa

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-19 Thread via cfe-commits
https://github.com/Sirraide commented: This still needs tests and a release note. https://github.com/llvm/llvm-project/pull/123495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-19 Thread via cfe-commits
@@ -5936,6 +5936,9 @@ def err_fold_expression_limit_exceeded: Error< "instantiating fold expression with %0 arguments exceeded expression nesting " "limit of %1">, DefaultFatal, NoSFINAE; +def note_function_like_macro_requires_parens +: Note<"'%0' exists, but as a fun

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-19 Thread via cfe-commits
@@ -2509,6 +2509,20 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, LookupResult &R, DC = DC->getLookupParent(); } + // Check whether a similar function-like macro exists and suggest it Sirraide wrote: Instead of doing this here before t

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-19 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/123495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

2025-01-19 Thread via cfe-commits
@@ -134,6 +134,7 @@ void test_NE() { // CHECK: fix-it:"{{.*}}macro_with_initializer_list.cpp":{110:32-110:32}:")" #define INIT(var, init) Foo var = init; // expected-note 3{{defined here}} +// expected-note@-1 2{{'INIT' exists, but as a function-like macro; perhaps, did you f

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Valentyn Yukhymenko (BaLiKfromUA) Changes Fixes llvm#123423 **How did I test it?** Modified existing test and checked an example from the issue manually. --- Full diff: https://github.com/llvm/llvm-project/pull/123533.diff 3 Files Aff

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA converted_to_draft https://github.com/llvm/llvm-project/pull/123533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA edited https://github.com/llvm/llvm-project/pull/123533 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
@@ -65,7 +65,8 @@ namespace InFunctions { template struct S3 { // expected-note {{template parameter is declared here}} template using T = int; // expected-error {{declaration of 'T' shadows template parameter}} }; - template using Z = Z; + template // expected-note

[clang] [llvm] [Clang] Match MSVC handling of duplicate header search paths in Microsoft compatibility modes. (PR #105738)

2025-01-19 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann updated https://github.com/llvm/llvm-project/pull/105738 >From c5d4a8b94d0f5b294dda30b455c492e0a860906a Mon Sep 17 00:00:00 2001 From: Tom Honermann Date: Thu, 22 Aug 2024 09:44:56 -0700 Subject: [PATCH] [Clang] Support for MSVC compatible header search path orde

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [Clang] Reject declaring an alias template with the same name as its template parameter. (PR #123533)

2025-01-19 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA created https://github.com/llvm/llvm-project/pull/123533 Fixes llvm#123423 **How did I test it?** Modified existing test and checked an example from the issue manually. >From 0852c8ca587e772d5f851ac0983f43bdeec2ebd5 Mon Sep 17 00:00:00 2001 From: Valentyn Yukhy

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Shilei Tian via cfe-commits
@@ -323,43 +323,59 @@ void AMDGPU::fillAMDGPUFeatureMap(StringRef GPU, const Triple &T, StringMap &Features) { // XXX - What does the member GPU mean if device name string passed here? if (T.isSPIRV() && T.getOS() == Triple::OSType::AMDHSA

[clang] [lldb] [llvm] Patch series to reapply #118734 and substantially improve it (PR #120534)

2025-01-19 Thread via cfe-commits
dyung wrote: > @dyung - OK, I think the current just-pushed version of this PR is worth > another test. > > I've taught the TableGen string table emission to go back to working around > the MSVC issues using a different table form that we used to use in LLVM when > MSVC had a reliable error o

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-01-19 Thread via cfe-commits
Sirraide wrote: > Did you do a stage 2 build? Not yet; that’s probably a good idea. https://github.com/llvm/llvm-project/pull/123470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix discarding DerivedToBase casts (PR #123523)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/123523 >From db874d225e0994587ca15384679d070651e0cc99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 19 Jan 2025 19:48:31 +0100 Subject: [PATCH] [clang][bytecode] Fix discarding DerivedToBase

[clang] f13850a - [AST] Migrate away from PointerUnion::dyn_cast (NFC) (#123499)

2025-01-19 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-19T10:56:57-08:00 New Revision: f13850a92c13d41ee377b8ebb2c226895fddbb57 URL: https://github.com/llvm/llvm-project/commit/f13850a92c13d41ee377b8ebb2c226895fddbb57 DIFF: https://github.com/llvm/llvm-project/commit/f13850a92c13d41ee377b8ebb2c226895fddbb57.diff L

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #123499)

2025-01-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/123499 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix discarding DerivedToBase casts (PR #123523)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/123523.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+6) - (modified) clang/test/AST/ByteCode/records.cpp (+15)

[clang] [clang][bytecode] Fix discarding DerivedToBase casts (PR #123523)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/123523 None >From f5544cfbc4a3223d76f1a388bd4c20d78f14da12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 19 Jan 2025 19:48:31 +0100 Subject: [PATCH] [clang][bytecode] Fix discarding DerivedT

[clang] [clang][bytecode][NFC] Use FixedPoint opaque int API (PR #123522)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Now that we have it, use it. --- Full diff: https://github.com/llvm/llvm-project/pull/123522.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+23-28) - (modified) clang/lib/AST/Byt

[clang] [clang][bytecode][NFC] Use FixedPoint opaque int API (PR #123522)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/123522 Now that we have it, use it. >From 9495bf522c349f8223f890c2581817814f7ba2f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 19 Jan 2025 19:39:04 +0100 Subject: [PATCH] [clang][bytecode]

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx edited https://github.com/llvm/llvm-project/pull/123519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Alex Voicu via cfe-commits
@@ -323,43 +323,59 @@ void AMDGPU::fillAMDGPUFeatureMap(StringRef GPU, const Triple &T, StringMap &Features) { // XXX - What does the member GPU mean if device name string passed here? if (T.isSPIRV() && T.getOS() == Triple::OSType::AMDHSA

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Shilei Tian via cfe-commits
@@ -323,43 +323,59 @@ void AMDGPU::fillAMDGPUFeatureMap(StringRef GPU, const Triple &T, StringMap &Features) { // XXX - What does the member GPU mean if device name string passed here? if (T.isSPIRV() && T.getOS() == Triple::OSType::AMDHSA

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/123519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NVPTX] Add support for PTX 8.6 and CUDA 12.6 (12.8) (PR #123398)

2025-01-19 Thread Durgadoss R via cfe-commits
@@ -682,6 +688,9 @@ void NVPTX::getNVPTXTargetFeatures(const Driver &D, const llvm::Triple &Triple, case CudaVersion::CUDA_##CUDA_VER: \ PtxFeature = "+ptx" #PTX_VER; \ break; +

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alex Voicu (AlexVlx) Changes When we did the initial AMDGCNSPIRV commits we left the initialisation of the feature map in a relatively disorderly state. This change corrects that oversight: - We make sure that AMDGCNSPIRV actually advert

[clang] [llvm] [NFC][AMDGPU] Clean-up feature parsing for AMDGCNSPIRV. (PR #123519)

2025-01-19 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx created https://github.com/llvm/llvm-project/pull/123519 When we did the initial AMDGCNSPIRV commits we left the initialisation of the feature map in a relatively disorderly state. This change corrects that oversight: - We make sure that AMDGCNSPIRV actually adverti

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang-tools-extra,clang,llvm` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/11328 Here is th

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
github-actions[bot] wrote: @DeNiCoN Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build,

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/123506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 293dbea - Fix some typos (#123506)

2025-01-19 Thread via cfe-commits
Author: DeNiCoN Date: 2025-01-19T16:53:39+01:00 New Revision: 293dbea8b0169525d93a4ee4b7d6c53aa9d4bee0 URL: https://github.com/llvm/llvm-project/commit/293dbea8b0169525d93a4ee4b7d6c53aa9d4bee0 DIFF: https://github.com/llvm/llvm-project/commit/293dbea8b0169525d93a4ee4b7d6c53aa9d4bee0.diff LOG:

[clang] [clang][bytecode] Register decomposition holding vars (PR #123515)

2025-01-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/11979 Here is the r

[clang] [clang][bytecode] Register decomposition holding vars (PR #123515)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/123515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0ab1f57 - [clang][bytecode] Register decomposition holding vars (#123515)

2025-01-19 Thread via cfe-commits
Author: Timm Baeder Date: 2025-01-19T16:29:56+01:00 New Revision: 0ab1f5772cbe6855d55bade566d885b7504c32ee URL: https://github.com/llvm/llvm-project/commit/0ab1f5772cbe6855d55bade566d885b7504c32ee DIFF: https://github.com/llvm/llvm-project/commit/0ab1f5772cbe6855d55bade566d885b7504c32ee.diff L

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
DeNiCoN wrote: @cor3ntin Yes. Thank you. Should I squash the commits or this can be done on your side? https://github.com/llvm/llvm-project/pull/123506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-01-19 Thread Jeremy Rifkin via cfe-commits
jeremy-rifkin wrote: There are implications with #123166, which might also be clang 21 material https://github.com/llvm/llvm-project/pull/123470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
redcode wrote: > > > This seems related to #85995. Do you plan to fix that issue together? > > > > > > I wasn't planning on fixing Clang's ``, I thought it would be > > better handled by the maintainers of the standard library, but I can do it > > if you want. > > Do you want me to do it? >

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread A. Jiang via cfe-commits
frederick-vs-ja wrote: > > This seems related to #85995. Do you plan to fix that issue together? > > I wasn't planning on fixing Clang's ``, I thought it would be > better handled by the maintainers of the standard library, but I can do it if > you want. > > Do you want me to do it? Oh, I di

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread Manuel Sainz de Baranda y Goñi via cfe-commits
redcode wrote: > This seems related to #85995. Do you plan to fix that issue together? I wasn't planning on fixing Clang's ``, I thought it would be better handled by the maintainers of the standard library, but I can do it if you want. Do you want me to do it? https://github.com/llvm/llvm-pr

[clang] [clang-tools-extra] [llvm] Fix some typos (PR #123506)

2025-01-19 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM. Do you need us to merge that for you? https://github.com/llvm/llvm-project/pull/123506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread A. Jiang via cfe-commits
frederick-vs-ja wrote: This seems related to #85995. Do you plan to fix that issue together? https://github.com/llvm/llvm-project/pull/123514 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [clang][bytecode] Register decomposition holding vars (PR #123515)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/123515.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+9) - (modified) clang/test/AST/ByteCode/cxx17.cpp (+20) ``

[clang] [clang][bytecode] Register decomposition holding vars (PR #123515)

2025-01-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/123515 None >From 69df4b6dc60426aee3ff61e556c44f81427a0e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 19 Jan 2025 15:49:30 +0100 Subject: [PATCH] [clang][bytecode] Register decomposition

[clang] [libcxxabi] [llvm] [WIP][Clang] Mangling of pack indexing type and expression for itanium (PR #123513)

2025-01-19 Thread Timm Baeder via cfe-commits
@@ -4785,6 +4790,19 @@ void CXXNameMangler::mangleRequirement(SourceLocation RequiresExprLoc, } } +void CXXNameMangler::mangleReferenceToPack(const NamedDecl* Pack) { +if (const TemplateTypeParmDecl *TTP = dyn_cast(Pack)) +mangleTemplateParameter(TTP->getDepth()

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Manuel Sainz de Baranda y Goñi (redcode) Changes This small PR makes Clang predefine the following macros: ``` __INT8_C(c) __INT16_C(c) __INT32_C(c) __INT64_C(c) __INTMAX_C(c) __UINT8_C(c) __UINT16_C(c) __UINT32_C(c) __UINT64_C(c) __UINTMA

[clang] [Clang] Add predefined macros for integer constants to implement section 7.18.4 of ISO/IEC 9899:1999 in `` in a safe way (PR #123514)

2025-01-19 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

  1   2   >