[clang] [libcxxabi] [lldb] [llvm] [DRAFT] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-03 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From b8f31ec8f556169a45370938cf28bd8582134a5c Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Sun, 3 Aug 2025 11:38:07 +0100 Subject: [PATCH 1/3] [clang][Attr] Remove 'literal label' form of AsmLabelAttr

[clang] [lldb] [Clang] Initial support for P2841 (Variable template and concept template parameters) (PR #150823)

2025-08-03 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/150823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxxabi] [lldb] [llvm] [DRAFT] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-03 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From a61eb43dd47463a817e2899ec81bab23d5bdc9bc Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 4 Aug 2025 07:49:19 +0100 Subject: [PATCH 1/3] Clang --- clang/include/clang/Basic/Attr.td | 17

[clang] [analyzer] Drop assertion enforcing that assume args are known constants (PR #151908)

2025-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balazs Benics (steakhal) Changes We sometimes don't know if the operand of [[assume]] is true/false, and that's okay. We can just ignore the attribute in that case. If we wanted something more fancy, we could bring the a

[clang] [analyzer] Drop assertion enforcing that assume args are known constants (PR #151908)

2025-08-03 Thread Balazs Benics via cfe-commits
https://github.com/steakhal updated https://github.com/llvm/llvm-project/pull/151908 >From 9ddd76493ede7e70efc0e930bb6beb31601721ad Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Mon, 4 Aug 2025 08:18:26 +0200 Subject: [PATCH] [analyzer] Drop assertion enforcing that assume args are known

[clang] [analyzer] Drop assertion enforcing that assume args are known constants (PR #151908)

2025-08-03 Thread Balazs Benics via cfe-commits
https://github.com/steakhal created https://github.com/llvm/llvm-project/pull/151908 We sometimes don't know if the operand of [[assume]] is true/false, and that's okay. We can just ignore the attribute in that case. If we wanted something more fancy, we could bring the assumption to the cons

[clang] [AST] Use llvm::iterator_range::empty (NFC) (PR #151904)

2025-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/151904.diff 6 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+1-1) - (modified) clang/lib/AST/ByteCode/Context.cpp (+1-1)

[clang] [AST] Use llvm::iterator_range::empty (NFC) (PR #151904)

2025-08-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151904 None >From 707fa648c0cf4de66adf34d307dec3e41559f962 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 3 Aug 2025 11:23:05 -0700 Subject: [PATCH] [AST] Use llvm::iterator_range::empty (NFC) --- clan

[clang] [clang-tools-extra] [clang]: Support `analyzer_noreturn` attribute in `CFG` (PR #150952)

2025-08-03 Thread Andrey Karlov via cfe-commits
https://github.com/negativ updated https://github.com/llvm/llvm-project/pull/150952 >From 417b4e465744f9a1d1704c87da4587626c9f5411 Mon Sep 17 00:00:00 2001 From: Andrey Karlov Date: Mon, 28 Jul 2025 16:23:21 +0300 Subject: [PATCH 1/2] Initial implementation --- .../bugprone/unchecked-optional

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-08-03 Thread via cfe-commits
@@ -0,0 +1,227 @@ +.. title:: clang-tidy - portability-avoid-platform-specific-fundamental-types + +portability-avoid-platform-specific-fundamental-types += + +Finds fundamental types (e.g. ``int``, ``float``) and recommends usin

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-08-03 Thread via cfe-commits
https://github.com/EugeneZelenko edited https://github.com/llvm/llvm-project/pull/146970 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Implement MC support for Zvfbfa extension (PR #151106)

2025-08-03 Thread Jim Lin via cfe-commits
tclin914 wrote: > What is the status of Zvfbfa in RVI vector sig? I think it's still under review: https://lists.riscv.org/g/tech-arch-review/topic/fast_track_admission_request/113319206. I'm not too familiar with how the ISA review process works. https://github.com/llvm/llvm-project/pull/151

[clang-tools-extra] [clang-tidy][docs][NFC] Add limitation of variable lifetimes in performance-unnecessary-copy-initialization (PR #151862)

2025-08-03 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. https://github.com/llvm/llvm-project/pull/151862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PATCH 1/7] [clang] Improve nested name specifier AST representation (PR #147835)

2025-08-03 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: > Hope that neither of these complicate your refactor! Looks like super > impressive work; looking forward to seeing it land. Thanks, that was very a very helpful summary! I don't think this changes much about the design here, we will get a few new nested name kinds, and these

[clang] clang: Make the type_info builtin declaration a singleton (PR #151277)

2025-08-03 Thread via cfe-commits
matts1 wrote: What's required to get this merged? It's blocking some of my work so I'd prefer it merged sooner rather than later. https://github.com/llvm/llvm-project/pull/151277 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[clang-tools-extra] [clangd] fix asserts on incompatible paths in CDB (PR #148019)

2025-08-03 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 requested changes to this pull request. I do think it would be good to have a test case for this; this is tricky code (and probably also performance-sensitive), and walking through a test case helps to think through the resulting behaviour. You can have a look

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-03 Thread Owen Pan via cfe-commits
@@ -3558,6 +3558,76 @@ struct FormatStyle { /// \version 9 std::vector NamespaceMacros; + /// Control over each component in a numeric literal. + enum NumericLiteralComponentStyle : int8_t { +/// Leave this component of the literal as is. +NLCS_Leave, +/// Al

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-03 Thread Owen Pan via cfe-commits
owenca wrote: I suggest `Prefix`, `HexDigit`, `ExponentLetter`, and `Suffix` for the sub-option names and `Leave`, `Lower`, and `Upper` for the enum values. For example: ``` NumericLiteralCase: Prefix: Lower # 0x, 0b, etc. HexDigit: Upper # ABCDEF ExponentLetter: Lower # e a

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-03 Thread Owen Pan via cfe-commits
@@ -0,0 +1,347 @@ +//===--- NumericLiteralCaseFixer.cpp ---*- 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-Identifier: Apache-2

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-03 Thread Owen Pan via cfe-commits
@@ -0,0 +1,347 @@ +//===--- NumericLiteralCaseFixer.cpp ---*- 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-Identifier: Apache-2

[clang-tools-extra] [clang-tidy] fix bugprone-narrowing-conversions false positive for conditional expression (PR #151874)

2025-08-03 Thread via cfe-commits
https://github.com/AndreyG updated https://github.com/llvm/llvm-project/pull/151874 >From aec94acddef414c3728047b5ff2adeb22d20694b Mon Sep 17 00:00:00 2001 From: Andrey Date: Sun, 3 Aug 2025 12:39:39 +0200 Subject: [PATCH] [clang-tidy] fix `bugprone-narrowing-conversions` false positive for co

[clang] [libcxxabi] [lldb] [llvm] [DRAFT] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-08-03 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From 809925d0fcb99f919b3a443a9b5fb22e4173a504 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Sun, 3 Aug 2025 11:38:07 +0100 Subject: [PATCH 1/3] [clang][Attr] Remove 'literal label' form of AsmLabelAttr

[clang] Thread Safety Analysis: Warn when using negative reentrant capability (PR #141599)

2025-08-03 Thread Aaron Puchert via cfe-commits
aaronpuchert wrote: I've been trying to implement this in `ThreadSafety.cpp`, and it does seem to work, but I ended up at the same conclusion that you had originally: that we don't need to warn about this. It's certainly a strange thing to write, but warnings are mostly about preventing accide

[clang] Thread safety analysis: Don't warn on acquiring reentrant capability (PR #150857)

2025-08-03 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#151889 https://github.com/llvm/llvm-project/pull/150857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread safety analysis: Don't warn on acquiring reentrant capability (PR #150857)

2025-08-03 Thread Aaron Puchert via cfe-commits
aaronpuchert wrote: /cherry-pick a048aeb06e5de571eadd646860c320b9a67d1efc https://github.com/llvm/llvm-project/pull/150857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread safety analysis: Don't warn on acquiring reentrant capability (PR #150857)

2025-08-03 Thread Aaron Puchert via cfe-commits
https://github.com/aaronpuchert milestoned https://github.com/llvm/llvm-project/pull/150857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread safety analysis: Allocate FactEntrys with BumpPtrAllocator (PR #149660)

2025-08-03 Thread Aaron Puchert via cfe-commits
https://github.com/aaronpuchert updated https://github.com/llvm/llvm-project/pull/149660 >From 1b1d3114602505618fa9bf7c7009ca848f53f814 Mon Sep 17 00:00:00 2001 From: Aaron Puchert Date: Sat, 19 Jul 2025 17:33:01 +0200 Subject: [PATCH] Thread safety analysis: Allocate FactEntrys with BumpPtrAl

[clang] Thread safety analysis: Allocate FactEntrys with BumpPtrAllocator (PR #149660)

2025-08-03 Thread Aaron Puchert via cfe-commits
@@ -941,43 +966,68 @@ class LockableFactEntry : public FactEntry { } }; -class ScopedLockableFactEntry : public FactEntry { +enum UnderlyingCapabilityKind { + UCK_Acquired, ///< Any kind of acquired capability. + UCK_ReleasedShared,///< Shared capability that

[clang] [include-cleaner] Support multi-header symbols in mapping generator (PR #147720)

2025-08-03 Thread via cfe-commits
=?utf-8?q?Ildikó?= Cseri , =?utf-8?q?Ildikó?= Cseri , =?utf-8?q?Ildikó?= Cseri , =?utf-8?q?Ildikó?= Cseri Message-ID: In-Reply-To: @@ -497,354 +78,3 @@ SYMBOL(_26, std::placeholders::, ) SYMBOL(_27, std::placeholders::, ) SYMBOL(_28, std::placeholders::, ) SYMBOL(_29, std::p

[clang] f9be391 - [LifetimeSafety] Handle pruned-edges (null blocks) in dataflow (#150670)

2025-08-03 Thread via cfe-commits
Author: Utkarsh Saxena Date: 2025-08-03T21:45:36+02:00 New Revision: f9be391dd7cf04d83525cfccc954c80c6f05d15d URL: https://github.com/llvm/llvm-project/commit/f9be391dd7cf04d83525cfccc954c80c6f05d15d DIFF: https://github.com/llvm/llvm-project/commit/f9be391dd7cf04d83525cfccc954c80c6f05d15d.diff

[clang] [LifetimeSafety] Handle pruned-edges (null blocks) in dataflow (PR #150670)

2025-08-03 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 closed https://github.com/llvm/llvm-project/pull/150670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Handle pruned-edges (null blocks) in dataflow (PR #150670)

2025-08-03 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: ### Merge activity * **Aug 3, 7:43 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/150670). https://github.com/llvm/llvm-project/pull/150670 ___

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/151035 >From ba0f486d6509c4227dfd3fdd66f0514534230186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Thu, 24 Jul 2025 21:10:43 + Subject: [PATCH] [clang-tidy] Avoid matching nodes in sy

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > In one of the files we check. Would we still get warnings for UserCode? Yes, we would. For example, a simple: ``` int x = 0; assert(reinterpret_cast(x) == nullptr); ``` Triggers `cppcoreguidelines-pro-type-reinterpret-cast` for the use of `reinterpret_cast`, even if it'

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/151035 >From 638b35e0f66f216cf29b67834f212f56f09acd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Thu, 24 Jul 2025 21:10:43 + Subject: [PATCH] [clang-tidy] Avoid matching nodes in sy

[clang] [llvm] Pass TargetMachine from from Clang to `BitcodeWriter`and `ThinLTOBitcodeWriter` pass for thin and fat LTO respectively. (PR #143692)

2025-08-03 Thread Garvit Gupta via cfe-commits
quic-garvgupt wrote: > This does works for the compilation step, for me it isn't sufficient to link > the resulting object file: > > ```shell > $ clang -I ./include -c ./src/use_macro.c -flto # Fixed by this PR > $ ld.lld use_macro.o > ld.lld: error: :1:10: Could not find include file 'macro.s

[clang] [llvm] Pass TargetMachine from from Clang to `BitcodeWriter`and `ThinLTOBitcodeWriter` pass for thin and fat LTO respectively. (PR #143692)

2025-08-03 Thread Garvit Gupta via cfe-commits
@@ -568,31 +572,44 @@ bool writeThinLTOBitcode(raw_ostream &OS, raw_ostream *ThinLinkOS, // produced for the full link. ModuleHash ModHash = {{0}}; WriteBitcodeToFile(M, OS, ShouldPreserveUseListOrder, Index, - /*GenerateHash=*/true, &ModHash); +

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Baranov Victor via cfe-commits
@@ -1336,6 +1336,44 @@ class MatchASTVisitor : public RecursiveASTVisitor, return false; } + template static SourceLocation getNodeLocation(const T &Node) { +return Node.getBeginLoc(); + } + + static SourceLocation getNodeLocation(const QualType &Node) { return

[clang] Thread safety analysis: Don't warn on acquiring reentrant capability (PR #150857)

2025-08-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-android` running on `sanitizer-buildbot-android` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/11280 Here is the relev

[clang] [llvm] Pass TargetMachine from from Clang to `BitcodeWriter`and `ThinLTOBitcodeWriter` pass for thin and fat LTO respectively. (PR #143692)

2025-08-03 Thread Garvit Gupta via cfe-commits
@@ -21,46 +24,64 @@ using namespace llvm; PreservedAnalyses BitcodeWriterPass::run(Module &M, ModuleAnalysisManager &AM) { M.removeDebugIntrinsicDeclarations(); - const ModuleSummaryIndex *Index = - EmitSummaryIndex ? &(AM.getResult(M)) - : nullp

[clang] [llvm] Pass TargetMachine from from Clang to `BitcodeWriter`and `ThinLTOBitcodeWriter` pass for thin and fat LTO respectively. (PR #143692)

2025-08-03 Thread Garvit Gupta via cfe-commits
@@ -139,39 +146,43 @@ initializeRecordStreamer(const Module &M, void ModuleSymbolTable::CollectAsmSymbols( const Module &M, -function_ref AsmSymbol) { - initializeRecordStreamer(M, [&](RecordStreamer &Streamer) { -Streamer.flushSymverDirectives(); - -for (auto

[clang] [llvm] Pass TargetMachine from from Clang to `BitcodeWriter`and `ThinLTOBitcodeWriter` pass for thin and fat LTO respectively. (PR #143692)

2025-08-03 Thread Garvit Gupta via cfe-commits
@@ -1158,7 +1158,7 @@ void EmitAssemblyHelper::RunOptimizationPipeline( return; } MPM.addPass(ThinLTOBitcodeWriterPass( -*OS, ThinLinkOS ? &ThinLinkOS->os() : nullptr)); +*OS, ThinLinkOS ? &ThinLinkOS->os() : nullptr, false, T

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Carlos Galvez via cfe-commits
@@ -1336,6 +1336,44 @@ class MatchASTVisitor : public RecursiveASTVisitor, return false; } + template static SourceLocation getNodeLocation(const T &Node) { +return Node.getBeginLoc(); + } + + static SourceLocation getNodeLocation(const QualType &Node) { return

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/151035 >From 89a2228e6599b5d1dbd0b734403b317076a93669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Thu, 24 Jul 2025 21:10:43 + Subject: [PATCH] [clang-tidy] Avoid matching nodes in sy

[clang] [llvm] Pass TargetMachine from from Clang to `BitcodeWriter`and `ThinLTOBitcodeWriter` pass for thin and fat LTO respectively. (PR #143692)

2025-08-03 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/143692 >From 2ce59cc209f7ffc449f20773e76414839a5125b6 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Mon, 26 May 2025 10:45:37 -0700 Subject: [PATCH] Pass TargetMachine from from Clang to `BitcodeWriter`and `

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Carlos Galvez via cfe-commits
@@ -1336,6 +1336,44 @@ class MatchASTVisitor : public RecursiveASTVisitor, return false; } + template static SourceLocation getNodeLocation(const T &Node) { +return Node.getBeginLoc(); + } + + static SourceLocation getNodeLocation(const QualType &Node) { return

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Carlos Galvez via cfe-commits
@@ -1336,6 +1336,44 @@ class MatchASTVisitor : public RecursiveASTVisitor, return false; } + template static SourceLocation getNodeLocation(const T &Node) { +return Node.getBeginLoc(); + } + + static SourceLocation getNodeLocation(const QualType &Node) { return

[clang-tools-extra] [clang-tidy] fix bugprone-narrowing-conversions false positive for conditional expression (PR #151874)

2025-08-03 Thread via cfe-commits
https://github.com/AndreyG edited https://github.com/llvm/llvm-project/pull/151874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread safety analysis: Don't warn on acquiring reentrant capability (PR #150857)

2025-08-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/24610 Here is the relevant piece of the build log fo

[clang] [CIR] Plus & Minus CompoundAssignment support for ComplexType (PR #150759)

2025-08-03 Thread Amr Hesham via cfe-commits
@@ -570,6 +594,124 @@ ComplexExprEmitter::emitBinOps(const BinaryOperator *e, QualType promotionTy) { return binOpInfo; } +LValue ComplexExprEmitter::emitCompoundAssignLValue( +const CompoundAssignOperator *e, +mlir::Value (ComplexExprEmitter::*func)(const BinOpInfo

[clang-tools-extra] [clang-tidy] fix bugprone-narrowing-conversions false positive for conditional expression #139474 (PR #151874)

2025-08-03 Thread via cfe-commits
https://github.com/AndreyG updated https://github.com/llvm/llvm-project/pull/151874 >From 5bd55220bc5a7f0d4fa5b43978068e944abfd231 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sun, 3 Aug 2025 12:39:39 +0200 Subject: [PATCH] [clang-tidy] fix `bugprone-narrowing-conversions` false positive for co

[clang] [CIR] Plus & Minus CompoundAssignment support for ComplexType (PR #150759)

2025-08-03 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/150759 >From 966844c4bbb1a2794c184e9a47bf97aa782dcdfc Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 26 Jul 2025 14:43:06 +0200 Subject: [PATCH 1/4] [CIR] Plus & Minus CompoundAssignment support for Compl

[clang] [CIR] Plus & Minus CompoundAssignment support for ComplexType (PR #150759)

2025-08-03 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/150759 >From 966844c4bbb1a2794c184e9a47bf97aa782dcdfc Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 26 Jul 2025 14:43:06 +0200 Subject: [PATCH 1/3] [CIR] Plus & Minus CompoundAssignment support for Compl

[clang] a048aeb - Thread safety analysis: Don't warn on acquiring reentrant capability (#150857)

2025-08-03 Thread via cfe-commits
Author: Aaron Puchert Date: 2025-08-03T19:50:17+02:00 New Revision: a048aeb06e5de571eadd646860c320b9a67d1efc URL: https://github.com/llvm/llvm-project/commit/a048aeb06e5de571eadd646860c320b9a67d1efc DIFF: https://github.com/llvm/llvm-project/commit/a048aeb06e5de571eadd646860c320b9a67d1efc.diff

[clang] Thread safety analysis: Don't warn on acquiring reentrant capability (PR #150857)

2025-08-03 Thread Aaron Puchert via cfe-commits
https://github.com/aaronpuchert closed https://github.com/llvm/llvm-project/pull/150857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implemented get/set for volatile bitfields (PR #151875)

2025-08-03 Thread via cfe-commits
@@ -53,21 +58,228 @@ typedef struct{ typedef struct{ volatile unsigned int a : 3; -unsigned int z: 2; -volatile unsigned int b : 5; +unsigned int z; +volatile unsigned long b : 16; } st4; // CIR-LAYOUT: BitFields:[ -// CIR-LAYOUT-NEXT: -// CIR-LAYOUT

[clang] [CIR] Plus & Minus CompoundAssignment support for ComplexType (PR #150759)

2025-08-03 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/150759 >From 966844c4bbb1a2794c184e9a47bf97aa782dcdfc Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 26 Jul 2025 14:43:06 +0200 Subject: [PATCH 1/2] [CIR] Plus & Minus CompoundAssignment support for Compl

[clang-tools-extra] [clang-tidy] fix `bugprone-narrowing-conversions` false positive for conditional expression (PR #139474)

2025-08-03 Thread via cfe-commits
AndreyG wrote: @vbvictor I've found out that unlike other narrowing-conversion tests, I didn't set explicitly target for the test run. I've fixed it and created another PR #151874. Please, take a look and sorry for the inconvenience. https://github.com/llvm/llvm-project/pull/139474 ___

[clang] [CIR] Implemented get/set for volatile bitfields (PR #151875)

2025-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Andres-Salamanca) Changes This PR adds support for loading and storing volatile bit-field members according to the AAPCS specification. > A volatile bit-field must always be accessed using an access width appropriate to the type of

[clang] [llvm] [Clang][C++23] Core language changes from P1467R9 extended floating-point types and standard names. (PR #78503)

2025-08-03 Thread M. Zeeshan Siddiqui via cfe-commits
codemzs wrote: > > @codemzs I want to make sure you saw the pending feedback. I think it would > > be great if we could land this for clang 21 :) > > @cor3ntin I plan to address the feedback this weekend. I agree with you on > aiming to get this in for clang 21, thank you for letting me know.

[clang] [CIR] Implemented get/set for volatile bitfields (PR #151875)

2025-08-03 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/151875 This PR adds support for loading and storing volatile bit-field members according to the AAPCS specification. > A volatile bit-field must always be accessed using an access width > appropriate to the

[clang-tools-extra] [clang-tidy] fix bugprone-narrowing-conversions false positive for conditional expression #139474 (PR #151874)

2025-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: Andrey (AndreyG) Changes This is another attempt to merge previously [reverted](https://github.com/llvm/llvm-project/pull/139474#issuecomment-3148339124) PR #139474. The added tests `narrowing-

[clang-tools-extra] [clang-tidy] fix bugprone-narrowing-conversions false positive for conditional expression #139474 (PR #151874)

2025-08-03 Thread via cfe-commits
https://github.com/AndreyG created https://github.com/llvm/llvm-project/pull/151874 This is another attempt to merge previously [reverted](https://github.com/llvm/llvm-project/pull/139474#issuecomment-3148339124) PR #139474. The added tests `narrowing-conversions-conditional-expressions.c[pp]

[clang-tools-extra] [NFC][run-clang-tidy] Add minor type hints (PR #151873)

2025-08-03 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank closed https://github.com/llvm/llvm-project/pull/151873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 408fe1d - [NFC][run-clang-tidy] Add minor type hints (#151873)

2025-08-03 Thread via cfe-commits
Author: Nicolas van Kempen Date: 2025-08-03T09:51:54-07:00 New Revision: 408fe1d369df926eecd6c15ce939d38652b4b58d URL: https://github.com/llvm/llvm-project/commit/408fe1d369df926eecd6c15ce939d38652b4b58d DIFF: https://github.com/llvm/llvm-project/commit/408fe1d369df926eecd6c15ce939d38652b4b58d.

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Balazs Benics via cfe-commits
@@ -1336,6 +1336,44 @@ class MatchASTVisitor : public RecursiveASTVisitor, return false; } + template static SourceLocation getNodeLocation(const T &Node) { +return Node.getBeginLoc(); + } + + static SourceLocation getNodeLocation(const QualType &Node) { return

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Balazs Benics via cfe-commits
https://github.com/steakhal commented: The patch looks good. I had a couple of remarks though. Thank you for working on this. https://github.com/llvm/llvm-project/pull/151035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Balazs Benics via cfe-commits
@@ -1336,6 +1336,44 @@ class MatchASTVisitor : public RecursiveASTVisitor, return false; } + template static SourceLocation getNodeLocation(const T &Node) { +return Node.getBeginLoc(); + } + + static SourceLocation getNodeLocation(const QualType &Node) { return

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Balazs Benics via cfe-commits
@@ -1336,6 +1336,44 @@ class MatchASTVisitor : public RecursiveASTVisitor, return false; } + template static SourceLocation getNodeLocation(const T &Node) { +return Node.getBeginLoc(); + } + + static SourceLocation getNodeLocation(const QualType &Node) { return

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/151035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [NFC][run-clang-tidy] Add minor type hints (PR #151873)

2025-08-03 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM, thanks! Indeed, CI checks could be helpful https://github.com/llvm/llvm-project/pull/151873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [PATCH 1/7] [clang] Improve nested name specifier AST representation (PR #147835)

2025-08-03 Thread Daniel M. Katz via cfe-commits
katzdm wrote: Hey @mizvekov - Just wanted to point out a few C++26 changes to nested-name-specifiers (via P2996), in case it helps in any way to future-proof your design. - A nested-name-specifier can now be either "_splice-specifier_ `::`" or "`template` _splice-specialization-specifier_ `::`

[clang] 90f1e04 - [clang] Try fixing implicit-module-header-maps.cpp

2025-08-03 Thread Aiden Grossman via cfe-commits
Author: Aiden Grossman Date: 2025-08-03T16:07:36Z New Revision: 90f1e04954daff087166c1072ad908d62e6ac6c9 URL: https://github.com/llvm/llvm-project/commit/90f1e04954daff087166c1072ad908d62e6ac6c9 DIFF: https://github.com/llvm/llvm-project/commit/90f1e04954daff087166c1072ad908d62e6ac6c9.diff LOG

[clang-tools-extra] [NFC][run-clang-tidy] Add minor type hints (PR #151873)

2025-08-03 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Unfortunately there is no CI setup for this. https://github.com/llvm/llvm-project/pull/151873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [NFC][run-clang-tidy] Add minor type hints (PR #151873)

2025-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Nicolas van Kempen (nicovank) Changes This script passes ``` python3 -m mypy --strict clang-tools-extra/clang-tidy/tool/run-clang-tidy.py ``` `args` and `kwargs` can be typed with what we expect for a single argument. In this case,

[clang-tools-extra] [NFC][run-clang-tidy] Add minor type hints (PR #151873)

2025-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Nicolas van Kempen (nicovank) Changes This script passes ``` python3 -m mypy --strict clang-tools-extra/clang-tidy/tool/run-clang-tidy.py ``` `args` and `kwargs` can be typed with what we expect for a single argument. In this

[clang-tools-extra] [NFC][run-clang-tidy] Add minor type hints (PR #151873)

2025-08-03 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank created https://github.com/llvm/llvm-project/pull/151873 This script passes ``` python3 -m mypy --strict clang-tools-extra/clang-tidy/tool/run-clang-tidy.py ``` `args` and `kwargs` can be typed with what we expect for a single argument. In this case, since we forwa

[clang] [Sema] Use llvm::iterator_range::empty (NFC) (PR #151852)

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

[clang] 32bc251 - [Sema] Use llvm::iterator_range::empty (NFC) (#151852)

2025-08-03 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-08-03T08:45:05-07:00 New Revision: 32bc2512a3f596ed176b0e8c1a2566e9229db825 URL: https://github.com/llvm/llvm-project/commit/32bc2512a3f596ed176b0e8c1a2566e9229db825 DIFF: https://github.com/llvm/llvm-project/commit/32bc2512a3f596ed176b0e8c1a2566e9229db825.diff L

[clang] [clang-format] allow short function body on a single line (PR #151428)

2025-08-03 Thread Lidong Yan via cfe-commits
@@ -1921,6 +1921,10 @@ void UnwrappedLineParser::parseStructuralElement( } } else if (Style.BraceWrapping.AfterFunction) { addUnwrappedLine(); +} else if (Style.AllowShortFunctionBodiesOnASingleLine) { + // Wrap the left brace here;

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: > The rationale being that a user typically cannot change the contents of a > system macro anyway. This is not always true, e.g., when it comes to macros with arguments. I am mostly interested in the scenario where someone has something like: ``` SYSTEM_HEADER_MACRO(UserCode)

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Gábor Horváth via cfe-commits
@@ -105,6 +105,10 @@ Improvements to clang-tidy now run checks in parallel by default using all available hardware threads. Both scripts display the number of threads being used in their output. +- :program:`clang-tidy` no longer attemps to analyze code from system headers

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-03 Thread Gábor Horváth via cfe-commits
@@ -1507,11 +1544,17 @@ bool MatchASTVisitor::TraverseStmt(Stmt *StmtNode, DataRecursionQueue *Queue) { } bool MatchASTVisitor::TraverseType(QualType TypeNode) { + if (shouldSkipNode(TypeNode)) Xazax-hun wrote: > b) overload the function for QualType and di

[clang] [include-cleaner] Support multi-header symbols in mapping generator (PR #147720)

2025-08-03 Thread Ildikó Cseri via cfe-commits
cseriildi wrote: @kadircet should I modify the failing unit test or what is the best course of action? https://github.com/llvm/llvm-project/pull/147720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-08-03 Thread Vassil Vassilev via cfe-commits
@@ -51,31 +51,23 @@ class InterpreterRemoteTest : public InterpreterTestBase { using Args = std::vector; +void removeFilename(int count, llvm::SmallString<256> &Path) { vgvassilev wrote: ```suggestion static void removePathComponent(unsigned N, llvm::SmallSt

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [NFC] Fix `assignment` typo. (PR #151864)

2025-08-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang-tools-extra,clang,flang-rt,flang,lldb,llvm` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/14669 H

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [NFC] Fix `assignment` typo. (PR #151864)

2025-08-03 Thread Connector Switch via cfe-commits
https://github.com/c8ef closed https://github.com/llvm/llvm-project/pull/151864 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 8b7f81f - [NFC] Fix `assignment` typo. (#151864)

2025-08-03 Thread via cfe-commits
Author: Connector Switch Date: 2025-08-03T22:32:00+08:00 New Revision: 8b7f81f2de1faceaa29b2c148d99b663d23f7110 URL: https://github.com/llvm/llvm-project/commit/8b7f81f2de1faceaa29b2c148d99b663d23f7110 DIFF: https://github.com/llvm/llvm-project/commit/8b7f81f2de1faceaa29b2c148d99b663d23f7110.di

[clang] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-08-03 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From 79849c3ba76ebf66fd7856fa92cd98af56ac49a6 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/14] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang-tools-extra] [clang-tidy][docs][NFC] Make uniform "Limitations" sections across all checks (PR #151863)

2025-08-03 Thread via cfe-commits
https://github.com/EugeneZelenko approved this pull request. https://github.com/llvm/llvm-project/pull/151863 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][sema]: Error when SEH __try is used in a function with C++ dtors (PR #151836)

2025-08-03 Thread via cfe-commits
https://github.com/Qwinci updated https://github.com/llvm/llvm-project/pull/151836 >From 5d6cdacb04b9bdb6cc4bad1539901b442ae613d5 Mon Sep 17 00:00:00 2001 From: Qwinci Date: Sun, 3 Aug 2025 16:18:37 +0300 Subject: [PATCH] [clang][sema]: Error when SEH __try is used in a function with C++ dtors

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [NFC] Fix `assignment` typo. (PR #151864)

2025-08-03 Thread Connector Switch via cfe-commits
https://github.com/c8ef updated https://github.com/llvm/llvm-project/pull/151864 >From 0440a3602e32fb0215c438db939bda6b8503762b Mon Sep 17 00:00:00 2001 From: c8ef Date: Sun, 3 Aug 2025 20:55:14 +0800 Subject: [PATCH 1/2] fix assignment typo --- .../checkers/performance/unnecessary-value-param

[clang] [clang][sema]: Error when SEH __try is used in a function with C++ dtors (PR #151836)

2025-08-03 Thread via cfe-commits
https://github.com/Qwinci updated https://github.com/llvm/llvm-project/pull/151836 >From 472cdf4a8433c776a3d955a2b8a7dbe71d85f763 Mon Sep 17 00:00:00 2001 From: Qwinci Date: Sun, 3 Aug 2025 16:18:37 +0300 Subject: [PATCH] [clang][sema]: Error when SEH __try is used in a function with C++ dtors

[clang] [clang][sema]: Error when SEH __try is used in a function with C++ dtors (PR #151836)

2025-08-03 Thread via cfe-commits
https://github.com/Qwinci edited https://github.com/llvm/llvm-project/pull/151836 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][sema]: Error when SEH __try is used in a function with C++ dtors (PR #151836)

2025-08-03 Thread via cfe-commits
https://github.com/Qwinci edited https://github.com/llvm/llvm-project/pull/151836 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][sema]: Error when SEH __try is used in a function with C++ dtors (PR #151836)

2025-08-03 Thread via cfe-commits
https://github.com/Qwinci edited https://github.com/llvm/llvm-project/pull/151836 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][seh]: Fix c++ destructors when c++ exceptions are disabled (PR #151836)

2025-08-03 Thread via cfe-commits
https://github.com/Qwinci updated https://github.com/llvm/llvm-project/pull/151836 >From 858ae7ed08a52cc8e4a295df7ca3b536df88a7b7 Mon Sep 17 00:00:00 2001 From: Qwinci Date: Sun, 3 Aug 2025 16:18:37 +0300 Subject: [PATCH] [clang][sema]: Error when SEH __try is used in a function with C++ dtors

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [NFC] Fix `assignment` typo. (PR #151864)

2025-08-03 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/151864 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [NFC] Fix `assignment` typo. (PR #151864)

2025-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Connector Switch (c8ef) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/151864.diff 15 Files Affected: - (modified) clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-value-param.cpp (+2-2) - (m

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [NFC] Fix `assignment` typo. (PR #151864)

2025-08-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-fir-hlfir @llvm/pr-subscribers-clang Author: Connector Switch (c8ef) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/151864.diff 15 Files Affected: - (modified) clang-tools-extra/test/clang-tidy/checkers/performance/unnecessa

  1   2   >