[clang] [Driver] Add DragonFly for handling of libdl and libexecinfo (PR #125179)

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

[clang] bc47dae - [Driver] Add DragonFly for handling of libdl and libexecinfo (#125179)

2025-01-30 Thread via cfe-commits
Author: Brad Smith Date: 2025-01-31T02:59:27-05:00 New Revision: bc47daed6d5491a7c65d4dd42da6bb11d3b1ab00 URL: https://github.com/llvm/llvm-project/commit/bc47daed6d5491a7c65d4dd42da6bb11d3b1ab00 DIFF: https://github.com/llvm/llvm-project/commit/bc47daed6d5491a7c65d4dd42da6bb11d3b1ab00.diff LO

[clang] [clang][bytecode] Handle invalid temporary descriptors (PR #125033)

2025-01-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-dylib` running on `linaro-flang-aarch64-dylib` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/50/builds/9675 Here is the relevant

[clang] [AArch64] Enable vscale_range with +sme (PR #124466)

2025-01-30 Thread David Green via cfe-commits
https://github.com/davemgreen closed https://github.com/llvm/llvm-project/pull/124466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9f1c825 - [AArch64] Enable vscale_range with +sme (#124466)

2025-01-30 Thread via cfe-commits
Author: David Green Date: 2025-01-31T07:57:43Z New Revision: 9f1c825fb62319b94ac9604f733afd59e9eb461b URL: https://github.com/llvm/llvm-project/commit/9f1c825fb62319b94ac9604f733afd59e9eb461b DIFF: https://github.com/llvm/llvm-project/commit/9f1c825fb62319b94ac9604f733afd59e9eb461b.diff LOG: [

[clang] [AArch64] Enable vscale_range with +sme (PR #124466)

2025-01-30 Thread David Green via cfe-commits
https://github.com/davemgreen edited https://github.com/llvm/llvm-project/pull/124466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Handle invalid temporary descriptors (PR #125033)

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

[clang] d2d8e2e - [clang][bytecode] Handle invalid temporary descriptors (#125033)

2025-01-30 Thread via cfe-commits
Author: Timm Baeder Date: 2025-01-31T08:53:31+01:00 New Revision: d2d8e2e0306ab1f0eac6406b5f2ec4d231b1f7ff URL: https://github.com/llvm/llvm-project/commit/d2d8e2e0306ab1f0eac6406b5f2ec4d231b1f7ff DIFF: https://github.com/llvm/llvm-project/commit/d2d8e2e0306ab1f0eac6406b5f2ec4d231b1f7ff.diff L

[clang] [clang:frontend] Move helper functions to common location for SemaSPIRV (PR #125045)

2025-01-30 Thread Muhammad Bassiouni via cfe-commits
bassiounix wrote: Huh.. this shouldn't fail! I tested locally before pushing the commits! Looks like these files aren't mine .. I guess .. https://github.com/llvm/llvm-project/pull/125045 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [Driver] Add DragonFly for handling of libdl and libexecinfo (PR #125179)

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

[clang] [Driver] DragonFly also needs libexecinfo (PR #125179)

2025-01-30 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/125179 >From 30642359e2e88bb9807cd9142c27f3b0b544bbe5 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 31 Jan 2025 02:15:00 -0500 Subject: [PATCH] [Driver] Add DragonFly for handling of libdl and libexecinfo --- cl

[clang] [clang:frontend] Move helper functions to common location for SemaSPIRV (PR #125045)

2025-01-30 Thread Muhammad Bassiouni via cfe-commits
https://github.com/bassiounix updated https://github.com/llvm/llvm-project/pull/125045 >From d938f75b1a5638f013ae2f7fb4f0ac2f6e28c6a4 Mon Sep 17 00:00:00 2001 From: Muhammad Bassiouni Date: Thu, 30 Jan 2025 12:02:25 +0200 Subject: [PATCH 1/5] [clang:frontend] Move helper functions in SemaHLSL t

[clang] [Driver] DragonFly also needs libexecinfo (PR #125179)

2025-01-30 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/125179 >From 984c3bb992bbc3d9c5c9af3b02e72914424f00c1 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 31 Jan 2025 02:15:00 -0500 Subject: [PATCH] [Driver] DragonFly also needs libexecinfo --- clang/lib/Driver/Tool

[clang] [Driver] DragonFly also needs libexecinfo (PR #125179)

2025-01-30 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff e6d16f93b329f2f9618d18d0b99c6060e206cf08 b3a80b3ff84a6e7523defca8dfa33d6c524445f0 --e

[clang] [Driver] DragonFly also needs libexecinfo (PR #125179)

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/125179.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/CommonArgs.cpp (+2-1) ``diff diff --git a/clang/lib/Driver/ToolChains

[clang] [Driver] DragonFly also needs libexecinfo (PR #125179)

2025-01-30 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/125179 None >From b3a80b3ff84a6e7523defca8dfa33d6c524445f0 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 31 Jan 2025 02:15:00 -0500 Subject: [PATCH] [Driver] DragonFly also needs libexecinfo --- clang/lib/Drive

[clang] [clang:frontend] Move helper functions to common location for SemaSPIRV (PR #125045)

2025-01-30 Thread via cfe-commits
Sirraide wrote: > `Sema` or `SemaBase`? Typically we just put those in `Sema`; I think the only thing in `SemaBase` at the moment are some diagnostics helpers. https://github.com/llvm/llvm-project/pull/125045 ___ cfe-commits mailing list cfe-commits@

[clang] [clang:frontend] Move helper functions to common location for SemaSPIRV (PR #125045)

2025-01-30 Thread Muhammad Bassiouni via cfe-commits
bassiounix wrote: > 1. If we were to introduce new helpers, then instead of making a new > header for this, these functions should just become member functions of the > `Sema` class. `Sema` or `SemaBase`? > 2. The new version of `CheckAllArgTypesAreCorrect()` is... way too > complic

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

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

[clang] Add clang atomic control options and attribute (PR #114841)

2025-01-30 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: > Mostly drive-by comments. Don't have strong opinion on either the attributes > themselves nor how the values get parsed. > > One thing that's missing is the documentation for the attributes. Their > format and meaning are far from obvious and should be documented along with

[clang] Add clang atomic control options and attribute (PR #114841)

2025-01-30 Thread Yaxun Liu via cfe-commits
@@ -240,3 +240,49 @@ LLVM_DUMP_METHOD void FPOptionsOverride::dump() { #include "clang/Basic/FPOptions.def" llvm::errs() << "\n"; } + +AtomicOptionsOverride +AtomicOptions::getChangesSlow(const AtomicOptions &Base) const { + AtomicOptions::storage_type OverrideMask = 0; +#de

[clang] 2941fa3 - [clang][HeuristicResolver] Only perform qualifier check for instance methods (#125166)

2025-01-30 Thread via cfe-commits
Author: Nathan Ridge Date: 2025-01-31T00:25:53-05:00 New Revision: 2941fa39410f7492aeaf73c90b92c3bfb7115044 URL: https://github.com/llvm/llvm-project/commit/2941fa39410f7492aeaf73c90b92c3bfb7115044 DIFF: https://github.com/llvm/llvm-project/commit/2941fa39410f7492aeaf73c90b92c3bfb7115044.diff

[clang] [clang][HeuristicResolver] Only perform qualifier check for instance methods (PR #125166)

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

[clang] [clang][HeuristicResolver] Only perform qualifier check for instance methods (PR #125166)

2025-01-30 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. Oops... https://github.com/llvm/llvm-project/pull/125166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][HeuristicResolver] Only perform qualifier check for instance methods (PR #125166)

2025-01-30 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Part of me wonders if there's ever a legitimate reason to call `CXXMethodDecl::getMethodQualifiers()` on a static method... https://github.com/llvm/llvm-project/pull/125166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [CIR] Fix some clang-tidy problems in CIR (PR #125128)

2025-01-30 Thread Nathan Lanza via cfe-commits
https://github.com/lanza approved this pull request. https://github.com/llvm/llvm-project/pull/125128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][HeuristicResolver] Only perform qualifier check for instance methods (PR #125166)

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/llvm/llvm-project/issues/125164 --- Full diff: https://github.com/llvm/llvm-project/pull/125166.diff 2 Files Affected: - (modified) clang/lib/Sema/HeuristicResolver.cpp (+2-

[clang] [clang][HeuristicResolver] Only perform qualifier check for instance methods (PR #125166)

2025-01-30 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/125166 Fixes https://github.com/llvm/llvm-project/issues/125164 >From 5d7ae41e0b67dd3cebe94d2aea67f653acfe5ad1 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Thu, 30 Jan 2025 23:45:52 -0500 Subject: [PATCH]

[clang] [llvm] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #125035)

2025-01-30 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 edited https://github.com/llvm/llvm-project/pull/125035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Fix some clang-tidy problems in CIR (PR #125128)

2025-01-30 Thread Nathan Lanza via cfe-commits
lanza wrote: LGTM! Thanks! https://github.com/llvm/llvm-project/pull/125128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [StaticAnalyzer] Fix state update in VisitObjCForCollectionStmt (PR #124477)

2025-01-30 Thread Balazs Benics via cfe-commits
steakhal wrote: @ziqingluo-90 I noticed you do a lot of force pushes. In general, you should strive for avoiding those and prefer merges instead, as per the usualy GitHub workflow. Remember, at llvm, a PR can only be merged using squash-merge anyways, so your history would vanish regardless.

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

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Litera

[clang] [TableGen] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125158)

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Litera

[clang] [TableGen] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125158)

2025-01-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/125158 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Literal migration

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

2025-01-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/125157 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Literal migration

[clang] [clang-format] Add ClassHeadName to help annotating StartOfName (PR #124891)

2025-01-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-dylib` running on `linaro-flang-aarch64-dylib` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/50/builds/9666 Here is the relevant

[clang] [clang-format] Fix mismatched break in BlockIndent (PR #124998)

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

[clang] b873479 - [clang-format] Fix mismatched break in BlockIndent (#124998)

2025-01-30 Thread via cfe-commits
Author: Gedare Bloom Date: 2025-01-30T19:38:43-08:00 New Revision: b8734797a3f605c4aaa37fcb5007baa273565460 URL: https://github.com/llvm/llvm-project/commit/b8734797a3f605c4aaa37fcb5007baa273565460 DIFF: https://github.com/llvm/llvm-project/commit/b8734797a3f605c4aaa37fcb5007baa273565460.diff

[clang] [clang-format] Add ClassHeadName to help annotating StartOfName (PR #124891)

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

[clang] 1a25bea - [clang-format] Add ClassHeadName to help annotating StartOfName (#124891)

2025-01-30 Thread via cfe-commits
Author: Owen Pan Date: 2025-01-30T19:33:15-08:00 New Revision: 1a25bea852cd4f7d99e644953c31278f7f257ccd URL: https://github.com/llvm/llvm-project/commit/1a25bea852cd4f7d99e644953c31278f7f257ccd DIFF: https://github.com/llvm/llvm-project/commit/1a25bea852cd4f7d99e644953c31278f7f257ccd.diff LOG:

[clang] [clang-format] Fix annotation of Java/JavaScript keyword extends (PR #125038)

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

[clang] [clang-format] Add ClassHeadName to help annotating StartOfName (PR #124891)

2025-01-30 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/124891 >From 04fd96533a48b0f6fdbacb6c9947740bf4c58992 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 28 Jan 2025 23:16:10 -0800 Subject: [PATCH] [clang-format] Add ClassHeadName to help annotating StartOfName Fixe

[clang] [clang-format] Fix mismatched break in BlockIndent (PR #124998)

2025-01-30 Thread Gedare Bloom via cfe-commits
@@ -9608,6 +9608,10 @@ TEST_F(FormatTest, AlignsAfterOpenBracket) { "\"a aaa a aaa a\"\n" ");", Style); + verifyFormat("aaa(\n" + "&b

[clang] [clang-format] Fix mismatched break in BlockIndent (PR #124998)

2025-01-30 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/124998 >From 69658e8c2beb787b90ea29765bf428892d4e5ec4 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Wed, 29 Jan 2025 14:53:10 -0700 Subject: [PATCH 1/3] [clang-format] Fix mismatched break in BlockIndent Near the C

[clang] [clang-format] Fix mismatched break in BlockIndent (PR #124998)

2025-01-30 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/124998 >From 69658e8c2beb787b90ea29765bf428892d4e5ec4 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Wed, 29 Jan 2025 14:53:10 -0700 Subject: [PATCH 1/2] [clang-format] Fix mismatched break in BlockIndent Near the C

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

2025-01-30 Thread Chandler Carruth via cfe-commits
chandlerc wrote: Given the benefit to binary size and compile time in things like `configure` scripts, I'd certainly like to see it land... Erich already reviewed an earlier version. Maybe @rnk can help with reviews? https://github.com/llvm/llvm-project/pull/120534

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

2025-01-30 Thread Shafik Yaghmour via cfe-commits
@@ -30220,6 +30220,11 @@ const char* cases[][2] = { {"_ZZNH3Foo3fooES_iENK4Foo24foo2Ev", "Foo::foo(this Foo, int)::Foo2::foo2() const" }, {"_ZNH3FooclERKS_", "Foo::operator()(this Foo const&)"}, + +// C++26 pack indexing shafik wrote: We should a

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

2025-01-30 Thread via cfe-commits
h-vetinari wrote: You'd have to merge and request a backport pretty quickly. Historically features could still be argued to land between rc1 (which is imminent) and rc2, but the windows is definitely closing fast https://github.com/llvm/llvm-project/pull/120534

[clang] [clang-format] Add ClassHeadName to help annotating StartOfName (PR #124891)

2025-01-30 Thread Owen Pan via cfe-commits
@@ -3458,6 +3509,9 @@ TEST_F(TokenAnnotatorTest, BraceKind) { Tokens = annotate("a = class Foo extends goog.a {};", getGoogleStyle(FormatStyle::LK_JavaScript)); ASSERT_EQ(Tokens.size(), 12u) << Tokens; + EXPECT_TOKEN(Tokens[3], tok::identifier, TT_Class

[clang] [clang-format] Add ClassHeadName to help annotating StartOfName (PR #124891)

2025-01-30 Thread Owen Pan via cfe-commits
@@ -1146,6 +1175,8 @@ TEST_F(TokenAnnotatorTest, UnderstandsRequiresClausesAndConcepts) { EXPECT_TOKEN(Tokens[31], tok::greater, TT_TemplateCloser); EXPECT_EQ(Tokens[31]->FakeRParens, 1u); EXPECT_TRUE(Tokens[31]->ClosesRequiresClause); + // FIXME: + // EXPECT_TOKEN(Tok

[clang] [clang-format] Add ClassHeadName to help annotating StartOfName (PR #124891)

2025-01-30 Thread Owen Pan via cfe-commits
@@ -1146,6 +1175,8 @@ TEST_F(TokenAnnotatorTest, UnderstandsRequiresClausesAndConcepts) { EXPECT_TOKEN(Tokens[31], tok::greater, TT_TemplateCloser); EXPECT_EQ(Tokens[31]->FakeRParens, 1u); EXPECT_TRUE(Tokens[31]->ClosesRequiresClause); + // FIXME: + // EXPECT_TOKEN(Tok

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

2025-01-30 Thread via cfe-commits
Andarwinux wrote: Will LLVM 20 miss this? https://github.com/llvm/llvm-project/pull/120534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix mismatched break in BlockIndent (PR #124998)

2025-01-30 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/124998 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix mismatched break in BlockIndent (PR #124998)

2025-01-30 Thread Owen Pan via cfe-commits
@@ -349,6 +349,13 @@ bool ContinuationIndenter::canBreak(const LineState &State) { } } + // Allow breaking before the right parens with block indentation if there was + // a break after the left parens, which is tracked by BreakBeforeClosingParen owen

[clang] [clang-format] Fix mismatched break in BlockIndent (PR #124998)

2025-01-30 Thread Owen Pan via cfe-commits
@@ -9608,6 +9608,10 @@ TEST_F(FormatTest, AlignsAfterOpenBracket) { "\"a aaa a aaa a\"\n" ");", Style); + verifyFormat("aaa(\n" + "&b

[clang] [clang][Index] Use HeuristicResolver in libIndex (PR #125153)

2025-01-30 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/125153 None >From ddb04e547e312884c63739600829b58c242211b3 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Thu, 30 Jan 2025 21:31:12 -0500 Subject: [PATCH] [clang][Index] Use HeuristicResolver in libIndex --

[clang] [Serialization] Migrate away from PointerUnion::dyn_cast (NFC) (#124884) (PR #125024)

2025-01-30 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 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/12773 Here is the relevant piec

[clang] 33c42f8 - [clang] Remove aarch64 logic from 32-bit ARM target info

2025-01-30 Thread David Majnemer via cfe-commits
Author: David Majnemer Date: 2025-01-31T02:14:23Z New Revision: 33c42f8bc5615b4dc46cb45ab41da97be52474ec URL: https://github.com/llvm/llvm-project/commit/33c42f8bc5615b4dc46cb45ab41da97be52474ec DIFF: https://github.com/llvm/llvm-project/commit/33c42f8bc5615b4dc46cb45ab41da97be52474ec.diff LOG

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

2025-01-30 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/123513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-01-30 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: This makes sense but let's make sure we cover all the added branches in the test suite. https://github.com/llvm/llvm-project/pull/123513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

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

2025-01-30 Thread Shafik Yaghmour via cfe-commits
@@ -5828,6 +5822,15 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity, break; } + case Expr::PackIndexingExprClass: { +auto *PE = cast(E); +NotPrimaryExpr(); shafik wrote: I am looking at the test cases and I don't see the

[clang] ea84474 - [clang-format] Fix annotation of Java/JavaScript keyword extends (#125038)

2025-01-30 Thread via cfe-commits
Author: Owen Pan Date: 2025-01-30T18:03:42-08:00 New Revision: ea84474966f19af4f1f4a1250ec258af1c6e2571 URL: https://github.com/llvm/llvm-project/commit/ea84474966f19af4f1f4a1250ec258af1c6e2571 DIFF: https://github.com/llvm/llvm-project/commit/ea84474966f19af4f1f4a1250ec258af1c6e2571.diff LOG:

[clang] 14178de - [clang-format] Fix a crash on parsing requires clause (#125021)

2025-01-30 Thread via cfe-commits
Author: Owen Pan Date: 2025-01-30T18:03:04-08:00 New Revision: 14178deab0334d9ce095ae7adce408868659faee URL: https://github.com/llvm/llvm-project/commit/14178deab0334d9ce095ae7adce408868659faee DIFF: https://github.com/llvm/llvm-project/commit/14178deab0334d9ce095ae7adce408868659faee.diff LOG:

[clang] [clang-format] Fix a crash on parsing requires clause (PR #125021)

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

[clang] 4fb8078 - [clang-format] Fix annotation of class name after requires clause (#125019)

2025-01-30 Thread via cfe-commits
Author: Owen Pan Date: 2025-01-30T18:02:40-08:00 New Revision: 4fb80788872e1c1c789fc9a06edd123414a427e6 URL: https://github.com/llvm/llvm-project/commit/4fb80788872e1c1c789fc9a06edd123414a427e6 DIFF: https://github.com/llvm/llvm-project/commit/4fb80788872e1c1c789fc9a06edd123414a427e6.diff LOG:

[clang] [clang-format] Fix annotation of class name after requires clause (PR #125019)

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

[clang] fc43308 - [Serialization] Migrate away from PointerUnion::dyn_cast (NFC) (#124884) (#125024)

2025-01-30 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-30T17:58:37-08:00 New Revision: fc433089e3535de3ae31c1c91194f654996529be URL: https://github.com/llvm/llvm-project/commit/fc433089e3535de3ae31c1c91194f654996529be DIFF: https://github.com/llvm/llvm-project/commit/fc433089e3535de3ae31c1c91194f654996529be.diff L

[clang] [Serialization] Migrate away from PointerUnion::dyn_cast (NFC) (#124884) (PR #125024)

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

[clang] [Sema] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125023)

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

[clang] 16e61df - [Sema] Migrate away from PointerUnion::dyn_cast (NFC) (#125023)

2025-01-30 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-30T17:58:23-08:00 New Revision: 16e61df8a135ec6dfe90277ac47a0dd6f461b346 URL: https://github.com/llvm/llvm-project/commit/16e61df8a135ec6dfe90277ac47a0dd6f461b346 DIFF: https://github.com/llvm/llvm-project/commit/16e61df8a135ec6dfe90277ac47a0dd6f461b346.diff L

[clang] ba5b146 - [AST] Migrate away from PointerUnion::dyn_cast (NFC) (#125022)

2025-01-30 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-01-30T17:58:10-08:00 New Revision: ba5b14655a3fb7adad3f9db0161c8742a035f744 URL: https://github.com/llvm/llvm-project/commit/ba5b14655a3fb7adad3f9db0161c8742a035f744 DIFF: https://github.com/llvm/llvm-project/commit/ba5b14655a3fb7adad3f9db0161c8742a035f744.diff L

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

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

[clang] [DependencyScanning] Add ability to scan TU with a buffer input (PR #125111)

2025-01-30 Thread Steven Wu via cfe-commits
https://github.com/cachemeifyoucan updated https://github.com/llvm/llvm-project/pull/125111 >From d836f2f5da850f0d985f34253873c6c461606db0 Mon Sep 17 00:00:00 2001 From: Steven Wu Date: Thu, 30 Jan 2025 11:51:41 -0800 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=

[clang] [Clang] Make OpenMP offloading consistently use the bound architecture (PR #125135)

2025-01-30 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/125135 >From 6ce33f816df8012479adb060d4452f2bcabe5855 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 30 Jan 2025 17:18:15 -0600 Subject: [PATCH] [Clang] Make OpenMP offloading consistently use the bound archit

[clang] [DependencyScanning] Add ability to scan TU with a buffer input (PR #125111)

2025-01-30 Thread Steven Wu via cfe-commits
@@ -0,0 +1,111 @@ +// UNSUPPORTED: target=powerpc64-ibm-aix{{.*}} + +// RUN: rm -rf %t +// RUN: split-file %s %t + +//--- module.modulemap +module root { header "root.h" } +module direct { header "direct.h" } +module transitive { header "transitive.h" } +module addition { header "

[clang] [DependencyScanning] Add ability to scan TU with a buffer input (PR #125111)

2025-01-30 Thread Steven Wu via cfe-commits
@@ -0,0 +1,111 @@ +// UNSUPPORTED: target=powerpc64-ibm-aix{{.*}} + +// RUN: rm -rf %t +// RUN: split-file %s %t + +//--- module.modulemap +module root { header "root.h" } +module direct { header "direct.h" } +module transitive { header "transitive.h" } +module addition { header "

[clang] [DependencyScanning] Add ability to scan TU with a buffer input (PR #125111)

2025-01-30 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,111 @@ +// UNSUPPORTED: target=powerpc64-ibm-aix{{.*}} + +// RUN: rm -rf %t +// RUN: split-file %s %t + +//--- module.modulemap +module root { header "root.h" } +module direct { header "direct.h" } +module transitive { header "transitive.h" } +module addition { header "

[clang] [compiler-rt] [llvm] [ASan] Add metadata to renamed instructions so ASan doesn't use the i… (PR #119387)

2025-01-30 Thread Vitaly Buka via cfe-commits
@@ -137,6 +137,10 @@ llvm::AllocaInst *CodeGenFunction::CreateTempAlloca(llvm::Type *Ty, Alloca = new llvm::AllocaInst(Ty, CGM.getDataLayout().getAllocaAddrSpace(), ArraySize, Name, AllocaInsertPt->getIterator()); + if (Alloca->getName

[clang] 536606f - [StaticAnalyzer] Fix state update in VisitObjCForCollectionStmt (#124477)

2025-01-30 Thread via cfe-commits
Author: Ziqing Luo Date: 2025-01-30T16:21:46-08:00 New Revision: 536606f6f617b4a33389819a3a20c5cbb735ed7e URL: https://github.com/llvm/llvm-project/commit/536606f6f617b4a33389819a3a20c5cbb735ed7e DIFF: https://github.com/llvm/llvm-project/commit/536606f6f617b4a33389819a3a20c5cbb735ed7e.diff LO

[clang] [StaticAnalyzer] Fix state update in VisitObjCForCollectionStmt (PR #124477)

2025-01-30 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 closed https://github.com/llvm/llvm-project/pull/124477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bce2cc1 - [clang] Set __GCC_*STRUCTIVE_SIZE on Aarch64

2025-01-30 Thread David Majnemer via cfe-commits
Author: David Majnemer Date: 2025-01-31T00:11:27Z New Revision: bce2cc15133a1458e4ad053085e58c7423c365b4 URL: https://github.com/llvm/llvm-project/commit/bce2cc15133a1458e4ad053085e58c7423c365b4 DIFF: https://github.com/llvm/llvm-project/commit/bce2cc15133a1458e4ad053085e58c7423c365b4.diff LOG

[clang] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (PR #115099)

2025-01-30 Thread Reid Kleckner via cfe-commits
https://github.com/rnk updated https://github.com/llvm/llvm-project/pull/115099 >From e5f485ad8000c296229794346fdd627b90e504d2 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 5 Nov 2024 16:05:53 -0800 Subject: [PATCH 1/6] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts

[clang] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (PR #115099)

2025-01-30 Thread Reid Kleckner via cfe-commits
@@ -2225,9 +2221,10 @@ _mm_storer_ps(float *__p, __m128 __a) ///be generated. \n ///_MM_HINT_T2: Move data using the T2 hint. The PREFETCHT2 instruction will ///be generated. -#define _mm_prefetch(a, sel) (__builtin_prefetch((const void *)(a), \ -

[clang] [Clang][counted_by] Refactor __builtin_dynamic_object_size on FAMs (PR #122198)

2025-01-30 Thread Bill Wendling via cfe-commits
https://github.com/bwendling closed https://github.com/llvm/llvm-project/pull/122198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-30 Thread Aidan Goldfarb via cfe-commits
@@ -4870,14 +4870,16 @@ def note_ovl_candidate_inconsistent_deduction_types : Note< "candidate template ignored: deduced values %diff{" "of conflicting types for parameter %0 (%1 of type $ vs. %3 of type $)|" "%1 and %3 of conflicting types for parameter %0}2,4">;

[clang] [clang] Track function template instantiation from definition (PR #112241)

2025-01-30 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Thanks for the report, this is the reduced reproducer: ```C++ template struct QWindowSystemHelper { template static void handleEvent() { QWindowSystemHelper::handleEvent(); } }; template <> template void QWindowSystemHelper::handleEvent() { static_assert(__is_same(Eve

[clang] [StaticAnalyzer] Fix state update in VisitObjCForCollectionStmt (PR #124477)

2025-01-30 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 updated https://github.com/llvm/llvm-project/pull/124477 >From 1f67a396d917428ff35ca54ecb2d9124c14342de Mon Sep 17 00:00:00 2001 From: Ziqing Luo Date: Thu, 30 Jan 2025 12:24:45 -0800 Subject: [PATCH 1/2] [StaticAnalyzer] Add reproducers for a bug in VisitObjCFo

[clang] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (PR #115099)

2025-01-30 Thread Eli Friedman via cfe-commits
@@ -2225,9 +2221,10 @@ _mm_storer_ps(float *__p, __m128 __a) ///be generated. \n ///_MM_HINT_T2: Move data using the T2 hint. The PREFETCHT2 instruction will ///be generated. -#define _mm_prefetch(a, sel) (__builtin_prefetch((const void *)(a), \ -

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-30 Thread Matheus Izvekov via cfe-commits
@@ -4870,14 +4870,16 @@ def note_ovl_candidate_inconsistent_deduction_types : Note< "candidate template ignored: deduced values %diff{" "of conflicting types for parameter %0 (%1 of type $ vs. %3 of type $)|" "%1 and %3 of conflicting types for parameter %0}2,4">;

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-30 Thread Matheus Izvekov via cfe-commits
@@ -11714,27 +11714,44 @@ static void DiagnoseBadDeduction(Sema &S, NamedDecl *Found, Decl *Templated, return; } - case TemplateDeductionResult::InvalidExplicitArguments: + case TemplateDeductionResult::InvalidExplicitArguments: { assert(ParamD && "no parameter f

[clang] [Clang] Make OpenMP offloading consistently use the bound architecture (PR #125135)

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: OpenMP was weirdly split between using the bound architecture from `--offload-arch=` and the old `-march=` option which only worked for single jobs. This patch removes that special handling. The main

[clang] [Clang] Make OpenMP offloading consistently use the bound architecture (PR #125135)

2025-01-30 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/125135 Summary: OpenMP was weirdly split between using the bound architecture from `--offload-arch=` and the old `-march=` option which only worked for single jobs. This patch removes that special handling. The main ben

[clang] [DependencyScanning] Add ability to scan TU with a buffer input (PR #125111)

2025-01-30 Thread Ben Langmuir via cfe-commits
@@ -0,0 +1,111 @@ +// UNSUPPORTED: target=powerpc64-ibm-aix{{.*}} + +// RUN: rm -rf %t +// RUN: split-file %s %t + +//--- module.modulemap +module root { header "root.h" } +module direct { header "direct.h" } +module transitive { header "transitive.h" } +module addition { header "

[clang] [DependencyScanning] Add ability to scan TU with a buffer input (PR #125111)

2025-01-30 Thread Ben Langmuir via cfe-commits
@@ -0,0 +1,111 @@ +// UNSUPPORTED: target=powerpc64-ibm-aix{{.*}} + +// RUN: rm -rf %t +// RUN: split-file %s %t + +//--- module.modulemap +module root { header "root.h" } +module direct { header "direct.h" } +module transitive { header "transitive.h" } +module addition { header "

[clang] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (PR #115099)

2025-01-30 Thread Reid Kleckner via cfe-commits
https://github.com/rnk updated https://github.com/llvm/llvm-project/pull/115099 >From e5f485ad8000c296229794346fdd627b90e504d2 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 5 Nov 2024 16:05:53 -0800 Subject: [PATCH 1/5] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts

[clang] [Win/X86] Make _m_prefetch[w] builtins to avoid winnt.h conflicts (PR #115099)

2025-01-30 Thread Reid Kleckner via cfe-commits
@@ -146,8 +146,13 @@ let Attributes = [Const, NoThrow, RequiredVectorWidth<256>], Features = "avx" in // current formulation is based on what was easiest to recognize from the // pre-TableGen version. -let Features = "mmx", Attributes = [NoThrow, Const] in { - def _mm_prefet

[clang] [PCH, CUDA] Take CUDA attributes into account (PR #125127)

2025-01-30 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B updated https://github.com/llvm/llvm-project/pull/125127 >From d6ff7dc3dcc5ca677a811888f5e67cc5aaad9d8f Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Thu, 30 Jan 2025 14:30:22 -0800 Subject: [PATCH 1/2] [PCH, CUDA] Take CUDA attributes into account During deser

[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)

2025-01-30 Thread Artem Belevich via cfe-commits
@@ -1,64 +1,40 @@ -// RUN: %clang_cc1 -triple aarch64 -verify=expected,aarch64 -fsyntax-only %s +// RUN: %clang_cc1 -triple aarch64 -verify=expected,unsupported -fsyntax-only %s // RUN: %clang_cc1 -triple loongarch64 -verify=expected,loongarch64 -fsyntax-only %s -// RUN: %clang

[clang] [CIR] Fix some clang-tidy problems in CIR (PR #125128)

2025-01-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This adds a .clang-tidy file to the clang/lib/CIR/FrontendAction directory, moves and updates the incorrectly located include/clang/CIR/FrontendAction .clang-tidy file, and updates two files from a recent

[clang] [PCH, CUDA] Take CUDA attributes into account (PR #125127)

2025-01-30 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff b108fbe6ea4247e5a3019a4facf611d5a42d465c d6ff7dc3dcc5ca677a811888f5e67cc5aaad9d8f --e

  1   2   3   4   5   >