[clang] [clang] Restrict use of scalar types in vector builtins (PR #119423)

2025-01-05 Thread Matt Arsenault via cfe-commits
@@ -68,15 +66,18 @@ void test_builtin_elementwise_add_sat(float f1, float f2, double d1, double d2, long long int i2, si8 vi1, si8 vi2, unsigned u1, unsigned u2, u4 vu1, u4 vu2,

[clang] [clang-repl] Implement value printing of custom types (PR #84769)

2025-01-05 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Hey @vgvassilev Just curious to know as to what work is left here and if any help is needed for the same ? https://github.com/llvm/llvm-project/pull/84769 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] [Clang][Driver][Test] Created test for unsupported driver options (PR #120900)

2025-01-05 Thread via cfe-commits
https://github.com/GeorgeKA updated https://github.com/llvm/llvm-project/pull/120900 >From faf8597dbb58a08991e11e9c4b9a0aad2f0b4234 Mon Sep 17 00:00:00 2001 From: GeorgeKA Date: Sun, 22 Dec 2024 09:42:36 -0500 Subject: [PATCH 1/3] [Clang][Driver][Test] Created test for unsupported driver optio

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread Chris Cotter via cfe-commits
https://github.com/ccotter updated https://github.com/llvm/llvm-project/pull/114244 >From fd914cc82688b122654d2d7ada72007541b197c0 Mon Sep 17 00:00:00 2001 From: Chris Cotter Date: Wed, 30 Oct 2024 10:54:49 -0400 Subject: [PATCH 01/10] Add bugprone-sprintf-overlap --- .../bugprone/BugproneTid

[clang] [Clang][ASTMatcher] Add a matcher for the name of a DependentScopeDeclRefExpr (PR #121656)

2025-01-05 Thread Nathan Ridge via cfe-commits
@@ -2235,6 +2235,24 @@ TEST_P(ASTMatchersTest, ArgumentCountIs_CXXConstructExpr) { Constructor1Arg)); } +TEST_P(ASTMatchersTest, HasDependentName_DependentScopeDeclRefExpr) { + if (!GetParam().isCXX() || GetParam().hasDelayedTemplateParsing()) { +// FIXM

[clang] [Clang][ASTMatcher] Add a matcher for the name of a DependentScopeDeclRefExpr (PR #121656)

2025-01-05 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. Thanks! The update looks good, I have one more minor suggestion for a change which I'll just go ahead and make before merging. https://github.com/llvm/llvm-project/pull/121656 ___ cfe-commi

[clang] [Clang][ASTMatcher] Add a matcher for the name of a DependentScopeDeclRefExpr (PR #121656)

2025-01-05 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/121656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Do not serialize function definitions without a body (PR #121550)

2025-01-05 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/121550 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Do not serialize function definitions without a body (PR #121550)

2025-01-05 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: Oh, previously we didn't allow `-fallow-pcm-with-compiler-errors` so we didn't meet such problems. Out of curiosity (not a blocking issue), why do you want this feature for C++20 modules? https://github.com/llvm/llvm-project/pull/121550

[clang] [clang] Do not serialize function definitions without a body (PR #121550)

2025-01-05 Thread Chuanqi Xu via cfe-commits
@@ -6227,8 +6227,10 @@ void ASTWriter::WriteDeclUpdatesBlocks(ASTContext &Context, // Add a trailing update record, if any. These must go last because we // lazily load their attached statement. if (!GeneratingReducedBMI || !CanElideDeclDef(D)) { - if (HasUpda

[clang] [Clang][ASTMatcher] Add a matcher for the name of a DependentScopeDeclRefExpr (PR #121656)

2025-01-05 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/121656 >From 4cd48886384570e0e5bb0b712f4fd45f8decd27e Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 4 Jan 2025 17:36:05 +0100 Subject: [PATCH 1/4] [Clang][ASTMatcher] Add a matcher for the name of a De

[clang] [C++20][modules] Fix std::initializer_list recognition if it's exported out of a module (PR #118537)

2025-01-05 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: It looks nice to backport this if we're still in the release circle for 19.x https://github.com/llvm/llvm-project/pull/118537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [C++20][modules] Fix std::initializer_list recognition if it's exported out of a module (PR #118537)

2025-01-05 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: /cherry-pick 9f1e9f682d0a85ea013ccbce6a3ec4ac1be8335 https://github.com/llvm/llvm-project/pull/118537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][modules] Fix std::initializer_list recognition if it's exported out of a module (PR #118537)

2025-01-05 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 milestoned https://github.com/llvm/llvm-project/pull/118537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--fmodule-output` (PR #121046)

2025-01-05 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > Why is this submitted against the release/19.x branch? Is this a backport? > > If so, please indicate which commit it backports. > > Not a backport but a new commit. I have now re-submitted it against `main`, > but I'd like it back-ported to `19.x` if possible. It is bet

[clang] [C++20][modules] Fix std::initializer_list recognition if it's exported out of a module (PR #118537)

2025-01-05 Thread via cfe-commits
llvmbot wrote: Failed to cherry-pick: 9f1e9f682d0a85ea013ccbce6a3ec4ac1be8335 https://github.com/llvm/llvm-project/actions/runs/12625144536 Please manually backport the fix and push it to your github fork. Once this is done, please create a [pull request](https://github.com/llvm/llvm-projec

[clang] [compiler-rt] [llvm] LLVMCoverage: Unify getCoverageForFile and getCoverageForFunction. NFC (PR #120842)

2025-01-05 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni edited https://github.com/llvm/llvm-project/pull/120842 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f3590c1 - [Clang][ASTMatcher] Add a matcher for the name of a DependentScopeDeclRefExpr (#121656)

2025-01-05 Thread via cfe-commits
Author: Amr Hesham Date: 2025-01-05T21:17:06-05:00 New Revision: f3590c16da9e6bb5c3b22f4593ef794a43dc8b5d URL: https://github.com/llvm/llvm-project/commit/f3590c16da9e6bb5c3b22f4593ef794a43dc8b5d DIFF: https://github.com/llvm/llvm-project/commit/f3590c16da9e6bb5c3b22f4593ef794a43dc8b5d.diff LO

[clang] [Clang][ASTMatcher] Add a matcher for the name of a DependentScopeDeclRefExpr (PR #121656)

2025-01-05 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/121656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] fix incorrect configuration file path resolving when file paths contain `..` (PR #121323)

2025-01-05 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/121323 >From 896db4495ff2c29c2e623d92e004ef64f49c8dd0 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Mon, 30 Dec 2024 16:38:29 +0800 Subject: [PATCH] [clang-tidy] fix incorrect configuration file path resolving

[clang-tools-extra] [clang-tidy][NFC] optimize cache for config option (PR #121406)

2025-01-05 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/121406 >From 8f8e8c5141fcb6b6d468c80cf3ceb4fdd88eecca Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Wed, 1 Jan 2025 01:11:36 +0800 Subject: [PATCH] [clang-tidy][NFC] optimize cache for config option Current im

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121313)

2025-01-05 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/121313 >From d5403c8f7dcdf15409febf1851bd8dc19b2babab Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Sun, 6 Oct 2024 00:41:48 -0400 Subject: [PATCH] [clangd] Add a unit test suite for HeuristicResolver Fixes

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121313)

2025-01-05 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: In the latest update, matchers for the `DependentNameType` cases are revised to be more specific. Here, the approach I took was to match the context in which the types appear. @hokein I believe your comment about using more specific matchers should be fully addressed now

[clang-tools-extra] [clang-tidy] Fix modernize-use-integer-sign-comparison comparison (PR #121506)

2025-01-05 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 commented: Please update release note. I agree to enable this feature by default if adding an option. https://github.com/llvm/llvm-project/pull/121506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [llvm] [OpenMP]Initial parsing/sema support for target_device selector set (PR #118471)

2025-01-05 Thread via cfe-commits
@@ -174,6 +177,8 @@ struct OMPContext { BitVector ActiveTraits = BitVector(unsigned(TraitProperty::Last) + 1); SmallVector ConstructTraits; + static int DeviceNum; + static StringRef DeviceNumID; Ritanya-B-Bharadwaj wrote: Agreed. I have made it non-sta

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread Chris Cotter via cfe-commits
https://github.com/ccotter updated https://github.com/llvm/llvm-project/pull/114244 >From fd914cc82688b122654d2d7ada72007541b197c0 Mon Sep 17 00:00:00 2001 From: Chris Cotter Date: Wed, 30 Oct 2024 10:54:49 -0400 Subject: [PATCH 01/15] Add bugprone-sprintf-overlap --- .../bugprone/BugproneTid

[clang] [C++20][modules] Fix std::initializer_list recognition if it's exported out of a module (PR #118537)

2025-01-05 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: @jijjijj automated backport failed. You can create a PR to release/19.x manually to backport it. https://github.com/llvm/llvm-project/pull/118537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [Coverage] Introduce the type `CounterPair` for RegionCounterMap. NFC. (PR #112724)

2025-01-05 Thread NAKAMURA Takumi via cfe-commits
@@ -101,6 +101,25 @@ enum ForDefinition_t : bool { ForDefinition = true }; +class CounterPair : public std::pair { chapuni wrote: Added comments, and refactored more. - Introduce the subclass `ValueOpt` and move mask operations into it. - Name the pair as `

[clang] [Coverage] Introduce the type `CounterPair` for RegionCounterMap. NFC. (PR #112724)

2025-01-05 Thread NAKAMURA Takumi via cfe-commits
@@ -122,6 +123,18 @@ class CodeGenPGO { Address MCDCCondBitmapAddr, llvm::Value *Val, CodeGenFunction &CGF); + void markStmtAsUsed(bool Skipped, const Stmt *S) { +// Do nothing. + } + + void markStmtMaybeUs

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread Chris Cotter via cfe-commits
https://github.com/ccotter updated https://github.com/llvm/llvm-project/pull/114244 >From fd914cc82688b122654d2d7ada72007541b197c0 Mon Sep 17 00:00:00 2001 From: Chris Cotter Date: Wed, 30 Oct 2024 10:54:49 -0400 Subject: [PATCH 01/12] Add bugprone-sprintf-overlap --- .../bugprone/BugproneTid

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread Chris Cotter via cfe-commits
@@ -0,0 +1,82 @@ +//===--- UndefinedSprintfOverlapCheck.cpp - clang-tidy ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread Chris Cotter via cfe-commits
https://github.com/ccotter updated https://github.com/llvm/llvm-project/pull/114244 >From fd914cc82688b122654d2d7ada72007541b197c0 Mon Sep 17 00:00:00 2001 From: Chris Cotter Date: Wed, 30 Oct 2024 10:54:49 -0400 Subject: [PATCH 01/12] Add bugprone-sprintf-overlap --- .../bugprone/BugproneTid

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread via cfe-commits
@@ -86,6 +86,7 @@ #include "TooSmallLoopVariableCheck.h" #include "UncheckedOptionalAccessCheck.h" #include "UndefinedMemoryManipulationCheck.h" +#include "SprintfArgumentOverlapCheck.h" EugeneZelenko wrote: Please keep alphabetical order. Same in other list-l

[clang] [Coverage] Introduce the type `CounterPair` for RegionCounterMap. NFC. (PR #112724)

2025-01-05 Thread NAKAMURA Takumi via cfe-commits
@@ -1869,7 +1871,10 @@ void CodeGenFunction::EmitAutoVarInit(const AutoVarEmission &emission) { // If we are at an unreachable point, we don't need to emit the initializer // unless it contains a label. if (!HaveInsertPoint()) { -if (!Init || !ContainsLabel(Init)) re

[clang] [clang-format] Add an option to control indentation of `export { ... }` (PR #110381)

2025-01-05 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/110381 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Coverage] Introduce `getBranchCounterPair()`. NFC. (PR #112702)

2025-01-05 Thread NAKAMURA Takumi via cfe-commits
@@ -941,6 +941,19 @@ struct CounterCoverageMappingBuilder return Counter::getCounter(CounterMap[S]); } + std::pair getBranchCounterPair(const Stmt *S, chapuni wrote: Done but I am still dubious namings would be appropriate. Not all users expect `[Exec

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread Chris Cotter via cfe-commits
@@ -0,0 +1,82 @@ +//===--- UndefinedSprintfOverlapCheck.cpp - clang-tidy ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread Chris Cotter via cfe-commits
https://github.com/ccotter updated https://github.com/llvm/llvm-project/pull/114244 >From fd914cc82688b122654d2d7ada72007541b197c0 Mon Sep 17 00:00:00 2001 From: Chris Cotter Date: Wed, 30 Oct 2024 10:54:49 -0400 Subject: [PATCH 01/13] Add bugprone-sprintf-overlap --- .../bugprone/BugproneTid

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121313)

2025-01-05 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/121313 >From dfde3a11f9e90e75ba5118959b0ad101b6369734 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Sun, 6 Oct 2024 00:41:48 -0400 Subject: [PATCH] [clangd] Add a unit test suite for HeuristicResolver Fixes

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121313)

2025-01-05 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: (Rebased) https://github.com/llvm/llvm-project/pull/121313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121313)

2025-01-05 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/121313 >From 63d9512fb376ee9bb837bad3f3d107969e561371 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Sun, 6 Oct 2024 00:41:48 -0400 Subject: [PATCH] [clangd] Add a unit test suite for HeuristicResolver Fixes

[clang] [Clang][ASTMatcher] Add a matcher for the name of a DependentScopeDeclRefExpr (PR #121656)

2025-01-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-multistage` running on `ppc64le-clang-multistage-test` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/76/builds/5845 Here is the

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121313)

2025-01-05 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: In the latest update, I use the new `hasDependentName()` matcher added in https://github.com/llvm/llvm-project/issues/121610 to make the matchers using `dependentScopeDeclRefExpr()` more specific. https://github.com/llvm/llvm-project/pull/121313 __

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread via cfe-commits
@@ -83,6 +83,7 @@ add_clang_library(clangTidyBugproneModule STATIC TooSmallLoopVariableCheck.cpp UncheckedOptionalAccessCheck.cpp UndefinedMemoryManipulationCheck.cpp + SprintfArgumentOverlapCheck.cpp EugeneZelenko wrote: Ditto. https://github.com/llvm

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread via cfe-commits
@@ -154,6 +154,7 @@ Clang-Tidy Checks :doc:`bugprone-too-small-loop-variable `, :doc:`bugprone-unchecked-optional-access `, :doc:`bugprone-undefined-memory-manipulation `, + :doc:`bugprone-sprintf-argument-overlap `, EugeneZelenko wrote: Ditto.

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread via cfe-commits
@@ -248,6 +249,8 @@ class BugproneModule : public ClangTidyModule { "bugprone-unchecked-optional-access"); CheckFactories.registerCheck( "bugprone-undefined-memory-manipulation"); +CheckFactories.registerCheck( EugeneZelenko wrote: Alph

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread Chris Cotter via cfe-commits
https://github.com/ccotter updated https://github.com/llvm/llvm-project/pull/114244 >From fd914cc82688b122654d2d7ada72007541b197c0 Mon Sep 17 00:00:00 2001 From: Chris Cotter Date: Wed, 30 Oct 2024 10:54:49 -0400 Subject: [PATCH 01/16] Add bugprone-sprintf-overlap --- .../bugprone/BugproneTid

[clang] [llvm] [OpenMP]Initial parsing/sema support for target_device selector set (PR #118471)

2025-01-05 Thread via cfe-commits
https://github.com/Ritanya-B-Bharadwaj updated https://github.com/llvm/llvm-project/pull/118471 >From cb3bfb497c6f65bc185dc4fe7b8d9c5dbd92c4f0 Mon Sep 17 00:00:00 2001 From: Ritanya B Bharadwaj Date: Tue, 3 Dec 2024 03:58:40 -0600 Subject: [PATCH 1/3] Initial parsing/sema support for target_dev

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2025-01-05 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat edited https://github.com/llvm/llvm-project/pull/100346 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2025-01-05 Thread Brandon Wu via cfe-commits
4vtomat wrote: Update: 1. Handle struct of fixed-length vectors 2. Remove `-mriscv-abi-vlen=N` option https://github.com/llvm/llvm-project/pull/100346 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2025-01-05 Thread Kito Cheng via cfe-commits
@@ -1953,7 +1953,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase { /// Extra information which affects how the function is called, like /// regparm and the calling convention. LLVM_PREFERRED_TYPE(CallingConv) -unsigned ExtInfo : 13; +

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2025-01-05 Thread Kito Cheng via cfe-commits
@@ -3013,6 +3013,7 @@ enum CXCallingConv { CXCallingConv_M68kRTD = 19, CXCallingConv_PreserveNone = 20, CXCallingConv_RISCVVectorCall = 21, + CXCallingConv_RISCVVLSCall = 22, kito-cheng wrote: Just use different calling convention to distinguish, then i

[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

2025-01-05 Thread Chris Cotter via cfe-commits
https://github.com/ccotter updated https://github.com/llvm/llvm-project/pull/114244 >From fd914cc82688b122654d2d7ada72007541b197c0 Mon Sep 17 00:00:00 2001 From: Chris Cotter Date: Wed, 30 Oct 2024 10:54:49 -0400 Subject: [PATCH 01/17] Add bugprone-sprintf-overlap --- .../bugprone/BugproneTid

[clang] f53abc2 - [clang][NFC] Refactor expected directives in CWG2881 test

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-01-05T21:29:32+03:00 New Revision: f53abc2db07abfa38af9365bc15572112adbe040 URL: https://github.com/llvm/llvm-project/commit/f53abc2db07abfa38af9365bc15572112adbe040 DIFF: https://github.com/llvm/llvm-project/commit/f53abc2db07abfa38af9365bc15572112adbe040.

[clang] [clang][WebAssembly] Support the `-m(no-)red-zone` flag. (PR #119997)

2025-01-05 Thread Alex Rønne Petersen via cfe-commits
alexrp wrote: ping https://github.com/llvm/llvm-project/pull/119997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-01-05 Thread Chandler Carruth via cfe-commits
chandlerc wrote: > > @dyung -- Ok, my latest attempt to work around these MSVC issues is now > > pushed to this PR. It also contains a commit of specifically debugging > > hacks to try and extract more information from any failure here. If you > > could try doing another build with the latest

[clang] [clang] Add test for CWG192 "Name lookup in parameters" (PR #121679)

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll closed https://github.com/llvm/llvm-project/pull/121679 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fbc198c - [clang] Add test for CWG192 "Name lookup in parameters" (#121679)

2025-01-05 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2025-01-05T13:15:08+04:00 New Revision: fbc198c548cf21bb2be29509a46913a57f95e610 URL: https://github.com/llvm/llvm-project/commit/fbc198c548cf21bb2be29509a46913a57f95e610 DIFF: https://github.com/llvm/llvm-project/commit/fbc198c548cf21bb2be29509a46913a57f95e610.

[clang] [clang] Add test for CWG794 "Base-derived conversion in member type of pointer-to-member conversion" (PR #121660)

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll closed https://github.com/llvm/llvm-project/pull/121660 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3321c2d - [clang] Add test for CWG794 "Base-derived conversion in member type of pointer-to-member conversion" (#121660)

2025-01-05 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2025-01-05T13:17:15+04:00 New Revision: 3321c2d72ab7757dbdd38bdd99a76d89293dac8a URL: https://github.com/llvm/llvm-project/commit/3321c2d72ab7757dbdd38bdd99a76d89293dac8a DIFF: https://github.com/llvm/llvm-project/commit/3321c2d72ab7757dbdd38bdd99a76d89293dac8a.

[clang] [clang] Add test for CWG794 "Base-derived conversion in member type of pointer-to-member conversion" (PR #121660)

2025-01-05 Thread via cfe-commits
@@ -337,3 +337,15 @@ template void h(int i = 0, T ...args, int j = 1) {} #endif } + +namespace cwg794 { // cwg794: 2.7 +struct B {}; +struct D : B {}; +struct X { + D d; +}; +struct Y : X {}; +B Y::*pm = &X::d; +// expected-error@-1 {{cannot initialize a variable of type 'B Y

[clang] [clang] Add test for CWG203 "Type of address-of-member expression" (PR #121687)

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/121687 This patch adds test for [CWG203](https://cplusplus.github.io/CWG/issues/203.html). Author was asking to change the type of pointer-to-member expression to be closer to how it's written as opposed to where the

[clang] [clang] Add test for CWG156 "Name lookup for conversion functions" (PR #121654)

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/121654 >From dcd29ca8c77e24c532ca8300a7e46f5498ffebbb Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Sat, 4 Jan 2025 19:37:46 +0300 Subject: [PATCH 1/2] [clang] Add test for CWG156 "Name lookup for conversion

[clang] [clang] Add test for CWG203 "Type of address-of-member expression" (PR #121687)

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/121687 >From bca2bfe17b71faeebf65eba11adcb70927f878fd Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Sun, 5 Jan 2025 13:58:16 +0300 Subject: [PATCH 1/2] [clang] Add test for CWG203 "Type of address-of-member

[clang] [clang][NFC] Make all C++ DR tests run in full range of language modes (PR #121688)

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/121688 This patch plugs holes in RUN lines in C++ DR tests, making sure they are run in C++98 through C++26, with the exception of C++03, which in Clang is synonymous to C++98. >From d6e8b78f2209c4bc29d47b8d196ec9ec9

[clang] [clang][NFC] Make all C++ DR tests run in full range of language modes (PR #121688)

2025-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes This patch plugs holes in RUN lines in C++ DR tests, making sure they are run in C++98 through C++26, with the exception of C++03, which in Clang is synonymous to C++98. --- Full diff: https://github.

[clang] [clang] Add test for CWG156 "Name lookup for conversion functions" (PR #121654)

2025-01-05 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/121654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add tests from CWG156 to CWG1111 (dual-scope lookup for conversion-function-ids) (PR #121654)

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/121654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add tests from CWG156 to CWG1111 (dual-scope lookup for conversion-function-ids) (PR #121654)

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/121654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 64e8d5b - [clang] Add tests from CWG156 to CWG1111 (dual-scope lookup for conversion-function-ids) (#121654)

2025-01-05 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2025-01-05T15:49:55+04:00 New Revision: 64e8d5b1baaa478c40931d290bf30687a6c93dac URL: https://github.com/llvm/llvm-project/commit/64e8d5b1baaa478c40931d290bf30687a6c93dac DIFF: https://github.com/llvm/llvm-project/commit/64e8d5b1baaa478c40931d290bf30687a6c93dac.

[clang] [clang] Add tests from CWG156 to CWG1111 (dual-scope lookup for conversion-function-ids) (PR #121654)

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll closed https://github.com/llvm/llvm-project/pull/121654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix implicit integer conversion for opaque enums declared in class templates (PR #121039)

2025-01-05 Thread via cfe-commits
=?utf-8?q?André?= Brand Message-ID: In-Reply-To: https://github.com/thebrandre edited https://github.com/llvm/llvm-project/pull/121039 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)

2025-01-05 Thread Luke Lau via cfe-commits
https://github.com/lukel97 approved this pull request. Apologies for the delay on this again. However I tried it out locally and it now seems to work on macOS, thanks for fixing that! I really can't speak much for the elisp, but we don't have many reviewers for the emacs stuff and this featur

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

2025-01-05 Thread via cfe-commits
dyung wrote: > @dyung -- Ok, my latest attempt to work around these MSVC issues is now > pushed to this PR. It also contains a commit of specifically debugging hacks > to try and extract more information from any failure here. If you could try > doing another build with the latest commit > ([

[clang] 743c84b - [clang][NFC] Move CWG2353 test to its own file

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-01-05T20:46:23+03:00 New Revision: 743c84bb9b79ed70d9bed926c2a173db3b30f587 URL: https://github.com/llvm/llvm-project/commit/743c84bb9b79ed70d9bed926c2a173db3b30f587 DIFF: https://github.com/llvm/llvm-project/commit/743c84bb9b79ed70d9bed926c2a173db3b30f587.

[clang] [clang] Fix implicit integer conversion for opaque enums declared in class templates (PR #121039)

2025-01-05 Thread via cfe-commits
=?utf-8?q?André?= Brand Message-ID: In-Reply-To: thebrandre wrote: @cor3ntin I hope there is no misunderstanding here. If so, I apologize, I strongly agree with you that some refactoring should be applied because, as I mentioned, the diagnostics get duplicated in certain cases as shown here

[clang] [Clang] disallow attributes after namespace identifier (PR #121614)

2025-01-05 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/121614 >From b8f6ffc0a98a0d3ac55fba4e6ee680f1edea4571 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sat, 4 Jan 2025 02:24:26 +0200 Subject: [PATCH 1/4] [Clang] disallow attributes after namespace identifier ---

[clang] [Clang] disallow attributes after namespace identifier (PR #121614)

2025-01-05 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/121614 >From b8f6ffc0a98a0d3ac55fba4e6ee680f1edea4571 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sat, 4 Jan 2025 02:24:26 +0200 Subject: [PATCH 1/3] [Clang] disallow attributes after namespace identifier ---

[clang] [Clang] disallow attributes after namespace identifier (PR #121614)

2025-01-05 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/121614 >From b8f6ffc0a98a0d3ac55fba4e6ee680f1edea4571 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sat, 4 Jan 2025 02:24:26 +0200 Subject: [PATCH 1/3] [Clang] disallow attributes after namespace identifier ---

[clang] [Clang] disallow attributes after namespace identifier (PR #121614)

2025-01-05 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/121614 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] disallow attributes after namespace identifier (PR #121614)

2025-01-05 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/121614 >From b8f6ffc0a98a0d3ac55fba4e6ee680f1edea4571 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sat, 4 Jan 2025 02:24:26 +0200 Subject: [PATCH 1/4] [Clang] disallow attributes after namespace identifier ---

[clang] [Clang] disallow attributes after namespace identifier (PR #121614)

2025-01-05 Thread Oleksandr T. via cfe-commits
@@ -100,7 +103,7 @@ Parser::DeclGroupPtrTy Parser::ParseNamespace(DeclaratorContext Context, } while (MoreToParse); }; - ReadAttributes(); + ReadAttributes(/*TrailingAttrs*/ false); a-tarasyuk wrote: @cor3ntin is it acceptable to use `DiagnoseAndSkip

[clang] [Clang][MIPS] Send correct architecture for MinGW toolchains (PR #121042)

2025-01-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-ubuntu` running on `as-builder-9` while building `clang` at step 16 "test-check-lldb-api". Full details are available at: https://lab.llvm.org/buildbot/#/builders/195/builds/3042 Here is the relevant piece

[clang] [clang] Add test for CWG203 "Type of address-of-member expression" (PR #121687)

2025-01-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes This patch adds test for [CWG203](https://cplusplus.github.io/CWG/issues/203.html). Author was asking to change the type of pointer-to-member expression to be closer to how it's written as opposed to

[clang] [clang] Fix implicit integer conversion for opaque enums declared in class templates (PR #121039)

2025-01-05 Thread via cfe-commits
=?utf-8?q?André?= Brand Message-ID: In-Reply-To: thebrandre wrote: @cor3ntin Good news! I figured it out on my own! And I now have a fix that I am confident in. 🙂 I analyzed the steps of the parser in **a lot** of similar cases, for which I also added quite a few regression tests. The attr

[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)

2025-01-05 Thread via cfe-commits
@@ -951,28 +959,130 @@ Sema::ActOnDecompositionDeclarator(Scope *S, Declarator &D, return New; } +namespace { +// CheckBindingsCount +// - Checks the arity of the structured bindings +// - Creates the resolved pack expr if there is +//one +bool CheckBindingsCount(Sema

[clang] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--fmodule-output` (PR #121046)

2025-01-05 Thread Sharadh Rajaraman via cfe-commits
https://github.com/sharadhr edited https://github.com/llvm/llvm-project/pull/121046 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2025-01-05 Thread A. Jiang via cfe-commits
frederick-vs-ja wrote: We also need to export `std::ranges::concat_view` and `std::ranges::views::concat` in `main/libcxx/modules/std/ranges.inc`. https://github.com/llvm/llvm-project/pull/120920 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2025-01-05 Thread A. Jiang via cfe-commits
@@ -0,0 +1,623 @@ +// -*- C++ -*- +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License

[clang] [clang] Fix implicit integer conversion for opaque enums declared in class templates (PR #121039)

2025-01-05 Thread via cfe-commits
=?utf-8?q?André?= Brand Message-ID: In-Reply-To: cor3ntin wrote: > Thanks for the PR. Can you update the commit message to be more descriptive? > > I'm not sure the fix is sufficient. > I think most of the checks done in `ActOnEnumBody` should be (re) performed > on instantiation. > > Maybe

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2025-01-05 Thread A. Jiang via cfe-commits
@@ -0,0 +1,623 @@ +// -*- C++ -*- +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License

[clang] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--fmodule-output` (PR #121046)

2025-01-05 Thread Sharadh Rajaraman via cfe-commits
sharadhr wrote: > Why is this submitted against the release/19.x branch? Is this a backport? If > so, please indicate which commit it backports. Not a backport but a fix. I have now re-submitted it against `main`, but I'd like it back-ported to `19.x` if possible. https://github.com/llvm/llvm

[clang] [clang] Add test for CWG794 "Base-derived conversion in member type of pointer-to-member conversion" (PR #121660)

2025-01-05 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/121660 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] disallow attributes after namespace identifier (PR #121614)

2025-01-05 Thread Oleksandr T. via cfe-commits
@@ -100,7 +103,7 @@ Parser::DeclGroupPtrTy Parser::ParseNamespace(DeclaratorContext Context, } while (MoreToParse); }; - ReadAttributes(); + ReadAttributes(/*TrailingAttrs*/ false); a-tarasyuk wrote: @cor3ntin thanks for the review. I've changed para

[clang] [Clang] disallow attributes after namespace identifier (PR #121614)

2025-01-05 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/121614 >From b8f6ffc0a98a0d3ac55fba4e6ee680f1edea4571 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sat, 4 Jan 2025 02:24:26 +0200 Subject: [PATCH 1/2] [Clang] disallow attributes after namespace identifier ---

[clang] [clang] Add tests from CWG156 to CWG1111 (dual-scope lookup for conversion-function-ids) (PR #121654)

2025-01-05 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` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/10583 Here is the relevant piece of the

[clang] [clang][NFC] Make all C++ DR tests run in full range of language modes (PR #121688)

2025-01-05 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll closed https://github.com/llvm/llvm-project/pull/121688 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 327e2b7 - [clang][NFC] Make all C++ DR tests run in full range of language modes (#121688)

2025-01-05 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2025-01-05T16:13:44+04:00 New Revision: 327e2b7c7659e2fff2e644850b767ca77234bef4 URL: https://github.com/llvm/llvm-project/commit/327e2b7c7659e2fff2e644850b767ca77234bef4 DIFF: https://github.com/llvm/llvm-project/commit/327e2b7c7659e2fff2e644850b767ca77234bef4.

[clang] [clang] Add tests from CWG156 to CWG1111 (dual-scope lookup for conversion-function-ids) (PR #121654)

2025-01-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot12` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/5080 Here is the rel

[clang] [Clang][ASTMatcher] Add a matcher for the name of a DependentScopeDeclRefExpr (PR #121656)

2025-01-05 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/121656 >From 4cd48886384570e0e5bb0b712f4fd45f8decd27e Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 4 Jan 2025 17:36:05 +0100 Subject: [PATCH 1/2] [Clang][ASTMatcher] Add a matcher for the name of a Depe

  1   2   >