[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-10-19 Thread via cfe-commits
https://github.com/huixie90 updated https://github.com/llvm/llvm-project/pull/78707 >From 0dc5bf91516e2138ed73b602cb17943ef6bcc878 Mon Sep 17 00:00:00 2001 From: Hui Date: Fri, 19 Jan 2024 12:33:43 + Subject: [PATCH 1/8] [libc++] fix _Atomic c11 compare exchange does not update expected re

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-10-19 Thread via cfe-commits
@@ -0,0 +1,70 @@ +//===--===// +// +// 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: Apac

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector extraction intrinsics to be used in constexpr #157712 (PR #162836)

2025-10-19 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon auto_merge_enabled https://github.com/llvm/llvm-project/pull/162836 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-10-19 Thread via cfe-commits
https://github.com/huixie90 updated https://github.com/llvm/llvm-project/pull/78707 >From 0dc5bf91516e2138ed73b602cb17943ef6bcc878 Mon Sep 17 00:00:00 2001 From: Hui Date: Fri, 19 Jan 2024 12:33:43 + Subject: [PATCH 01/10] [libc++] fix _Atomic c11 compare exchange does not update expected

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread via cfe-commits
@@ -683,61 +690,8 @@ void WhitespaceManager::alignConsecutiveMacros() { return Current->Next->SpacesRequiredBefore == SpacesRequiredBefore; }; - unsigned MinColumn = 0; - - // Start and end of the token sequence we're processing. - unsigned StartOfSequence = 0; - uns

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/164120 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread via cfe-commits
@@ -536,14 +540,17 @@ static unsigned AlignTokens(const FormatStyle &Style, F &&Matches, if (CurrentChange.Tok->isNot(tok::comment)) LineIsComment = false; -if (CurrentChange.Tok->is(tok::comma)) { - ++CommasBeforeMatch; -} else if (CurrentChange.indent

[clang] [Clang] Do not warn on UTF-16 -> UTF-32 conversions. (PR #163927)

2025-10-19 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/163927 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3a15687 - [Clang] Do not warn on UTF-16 -> UTF-32 conversions. (#163927)

2025-10-19 Thread via cfe-commits
Author: Corentin Jabot Date: 2025-10-19T09:26:22+02:00 New Revision: 3a15687d1c789ebac04bf394ec31f95331c74bf8 URL: https://github.com/llvm/llvm-project/commit/3a15687d1c789ebac04bf394ec31f95331c74bf8 DIFF: https://github.com/llvm/llvm-project/commit/3a15687d1c789ebac04bf394ec31f95331c74bf8.diff

[clang] [Clang] Consider reachability for file-scope warnings on initializers (PR #163885)

2025-10-19 Thread Corentin Jabot via cfe-commits
@@ -581,3 +581,28 @@ bool Parser::ParseMicrosoftIfExistsBraceInitializer(ExprVector &InitExprs, return !trailingComma; } + +ExprResult Parser::ParseInitializer(Decl *DeclForInitializer) { + // Set DeclForInitializer for file-scope variables. + // For constexpr references,

[clang] [Clang] Consider reachability for file-scope warnings on initializers (PR #163885)

2025-10-19 Thread Corentin Jabot via cfe-commits
@@ -13727,6 +13734,16 @@ void Sema::DiagnoseUniqueObjectDuplication(const VarDecl *VD) { } void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, bool DirectInit) { + // RAII helper to ensure DeclForInitializer is cleared on all exit paths + struct ClearDeclForInitiali

[clang] [Clang] Consider reachability for file-scope warnings on initializers (PR #163885)

2025-10-19 Thread Corentin Jabot via cfe-commits
@@ -6750,6 +6750,11 @@ class Sema final : public SemaBase { /// suffice, e.g., in a default function argument. Decl *ManglingContextDecl; +/// Declaration for initializer if one is currently being +/// parsed. Used when an expression has a possibly unreachable

[clang] [Clang] Consider reachability for file-scope warnings on initializers (PR #163885)

2025-10-19 Thread Corentin Jabot via cfe-commits
@@ -581,3 +581,28 @@ bool Parser::ParseMicrosoftIfExistsBraceInitializer(ExprVector &InitExprs, return !trailingComma; } + +ExprResult Parser::ParseInitializer(Decl *DeclForInitializer) { + // Set DeclForInitializer for file-scope variables. + // For constexpr references,

[clang] [Clang] Consider reachability for file-scope warnings on initializers (PR #163885)

2025-10-19 Thread Corentin Jabot via cfe-commits
@@ -116,6 +126,10 @@ class AnalysisBasedWarnings { Policy &getPolicyOverrides() { return PolicyOverrides; } void PrintStats() const; + + void + EmitPossiblyUnreachableDiags(AnalysisDeclContext &AC, + SmallVector PUDs); cor3n

[clang] [CIR] vTableClassNameForType: return correct VTableClass name for Type::ObjCObjectPointer, Type::Pointer (PR #163850)

2025-10-19 Thread via cfe-commits
n2h9 wrote: I have just walked through this code in debugger, and looks like when we throw pointer to int, we do not reach this case ``` case Type::ObjCObjectPointer: case Type::Pointer: return "_ZTVN10__cxxabiv119__pointer_type_infoE"; ``` we reach it if we throw pointer to object. But

[clang] [CIR] vTableClassNameForType: return correct VTableClass name for Type::ObjCObjectPointer, Type::Pointer (PR #163850)

2025-10-19 Thread via cfe-commits
https://github.com/n2h9 converted_to_draft https://github.com/llvm/llvm-project/pull/163850 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Apply DeMorgan to overloaded operator in the 'readability-simplify-boolean-expr' check (PR #164141)

2025-10-19 Thread Baranov Victor via cfe-commits
@@ -829,22 +829,22 @@ static bool flipDemorganSide(SmallVectorImpl &Fixes, const ASTContext &Ctx, const Expr *E, std::optional OuterBO); -/// Inverts \p BinOp, Removing \p Parens if they exist and are safe to remove. -

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector extraction intrinsics to be used in constexpr #157712 (PR #162836)

2025-10-19 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/162836 >From 3128a37fa669b00235b06f577dd5bf8354b2265e Mon Sep 17 00:00:00 2001 From: SeongjaeP Date: Thu, 9 Oct 2025 14:25:24 +0900 Subject: [PATCH 01/12] Apply style fixes and rebase onto upstream --- clang/lib/AST/

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings 4/N (PR #164158)

2025-10-19 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/164158 Continue https://github.com/llvm/llvm-project/pull/153885. >From b071fadcd81db36a006c13ef904bfcf8b12ca6d9 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sun, 19 Oct 2025 15:30:44 +0300 Subject: [PATCH] [c

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings 4/N (PR #164158)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: Baranov Victor (vbvictor) Changes Continue https://github.com/llvm/llvm-project/pull/153885. --- Patch is 21.81 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-pro

[clang-tools-extra] [clang-tools-extra][Unittest] Fix wrong reference to CMake configuration variable (PR #164147)

2025-10-19 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/164147 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] [polly] [Unittest][Cygwin] Set $PATH when running unittests (PR #163947)

2025-10-19 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/163947 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for atomic test-and-set and atomic clear (PR #164162)

2025-10-19 Thread Sirui Mu via cfe-commits
https://github.com/Lancern created https://github.com/llvm/llvm-project/pull/164162 This patch adds support for the following atomic builtin functions: - `__atomic_test_and_set` - `__atomic_clear` >From 57e1b095244131e723f52f415bd18e7e0d6c1ab9 Mon Sep 17 00:00:00 2001 From: Sirui Mu Date:

[clang] [C++][Modules] Import declaration should in global module fragment, module interface or module implementation (PR #164106)

2025-10-19 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast edited https://github.com/llvm/llvm-project/pull/164106 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for atomic test-and-set and atomic clear (PR #164162)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Sirui Mu (Lancern) Changes This patch adds support for the following atomic builtin functions: - `__atomic_test_and_set` - `__atomic_clear` --- Full diff: https://github.com/llvm/llvm-project/pull/164162.diff 4 Files Affected: - (

[clang] 2272726 - Reapply "[Clang] Make rewrite-includes-bom.c work with internal shell"

2025-10-19 Thread Aiden Grossman via cfe-commits
Author: Aiden Grossman Date: 2025-10-19T13:05:58-07:00 New Revision: 227272662a02151ad401c0881da46250944dc3e3 URL: https://github.com/llvm/llvm-project/commit/227272662a02151ad401c0881da46250944dc3e3 DIFF: https://github.com/llvm/llvm-project/commit/227272662a02151ad401c0881da46250944dc3e3.diff

[clang] ea3dbb8 - [Clang] Disable rewrite-includes-bom.c on Windows

2025-10-19 Thread Aiden Grossman via cfe-commits
Author: Aiden Grossman Date: 2025-10-19T20:38:46Z New Revision: ea3dbb8b0061a7e44cba92b6e4e4486c4a416d65 URL: https://github.com/llvm/llvm-project/commit/ea3dbb8b0061a7e44cba92b6e4e4486c4a416d65 DIFF: https://github.com/llvm/llvm-project/commit/ea3dbb8b0061a7e44cba92b6e4e4486c4a416d65.diff LOG

[clang] [clang-format][NFC] Simplify AlignMacroMatches (PR #164122)

2025-10-19 Thread Björn Schäpers via cfe-commits
@@ -656,7 +656,6 @@ void WhitespaceManager::alignConsecutiveMacros() { auto AlignMacrosMatches = [](const Change &C) { const FormatToken *Current = C.Tok; HazardyKnusperkeks wrote: Would make this one stand out, and I don't think that's necessary, All c

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/164120 From 25469d96008d17f370d6372539f4ed5b8a151e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Sat, 18 Oct 2025 21:58:35 +0200 Subject: [PATCH 1/2] [clang-format] Reuse Alig

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread Björn Schäpers via cfe-commits
@@ -683,61 +690,8 @@ void WhitespaceManager::alignConsecutiveMacros() { return Current->Next->SpacesRequiredBefore == SpacesRequiredBefore; }; - unsigned MinColumn = 0; - - // Start and end of the token sequence we're processing. - unsigned StartOfSequence = 0; - uns

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread Björn Schäpers via cfe-commits
@@ -536,14 +540,17 @@ static unsigned AlignTokens(const FormatStyle &Style, F &&Matches, if (CurrentChange.Tok->isNot(tok::comment)) LineIsComment = false; -if (CurrentChange.Tok->is(tok::comma)) { - ++CommasBeforeMatch; -} else if (CurrentChange.indent

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks auto_merge_enabled https://github.com/llvm/llvm-project/pull/164120 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Simplify AlignMacroMatches (PR #164122)

2025-10-19 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/164122 From ff688c7e3829f769cfd20f2482e90b07e54618c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Sat, 18 Oct 2025 22:11:47 +0200 Subject: [PATCH 1/2] [clang-format][NFC] Simpl

[clang-tools-extra] [clang-tidy] Emit warnings from user headers by default (PR #164165)

2025-10-19 Thread Victor Chernyakin via cfe-commits
@@ -133,13 +133,15 @@ file, if any. static cl::opt HeaderFilter("header-filter", desc(R"( Regular expression matching the names of the headers to output diagnostics from. Diagnostics -from the main file of each translation unit are -always displayed. +from the main file and all

[clang] [clang][CodeGen] Emit `llvm.tbaa.errno` metadata during module creation (PR #125258)

2025-10-19 Thread Nikita Popov via cfe-commits
nikic wrote: Reverse ping https://github.com/llvm/llvm-project/pull/125258 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Emit CIR builtins: coroAlloc, coroBegin, and coroSize (PR #164180)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Andres-Salamanca) Changes This PR adds support for emitting the builtins coroAlloc, coroBegin, and coroSize. --- Full diff: https://github.com/llvm/llvm-project/pull/164180.diff 6 Files Affected: - (modified) clang/include/clang/

[clang] [CIR] Emit CIR builtins: coroAlloc, coroBegin, and coroSize (PR #164180)

2025-10-19 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/164180 This PR adds support for emitting the builtins coroAlloc, coroBegin, and coroSize. >From 3e24f4b1e5b1d15f34e38755ebe7c44ec09b9fba Mon Sep 17 00:00:00 2001 From: Andres Salamanca Date: Sun, 19 Oct 2025

[clang] [NFC][doc] Mark P1857R3 as partial implemented (PR #164095)

2025-10-19 Thread Hubert Tong via cfe-commits
@@ -926,7 +926,14 @@ C++20 implementation status https://wg21.link/p1857r3";>P1857R3 -No + + +>Clang 21(Partial) +The restriction 'A module directive may only appear as +the first preprocessing

[clang] [NFC][doc] Mark P1857R3 as partial implemented (PR #164095)

2025-10-19 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast edited https://github.com/llvm/llvm-project/pull/164095 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][doc] Mark P1857R3 as partial implemented (PR #164095)

2025-10-19 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast approved this pull request. LGTM once comments are addressed. https://github.com/llvm/llvm-project/pull/164095 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang][analyzer] Add new option to specify functions `SecuritySyntaxChecker` warns about. (PR #164184)

2025-10-19 Thread Stefan Milenkovic via cfe-commits
https://github.com/stemil01 created https://github.com/llvm/llvm-project/pull/164184 Addresses #103038. Currently, the list of functions for which `SecuritySyntaxChecker` emits warnings is fixed. This patch adds a new command-line option `Warn`, which allows users to provide a space-separated

[clang] [clang][analyzer] Add new option to specify functions `SecuritySyntaxChecker` warns about. (PR #164184)

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

[clang] [clang][analyzer] Mark `_lstrcatA`, `_strcpyA`, and `_strdup` as insecure on Windows in `SecuritySyntaxChecker` (PR #164183)

2025-10-19 Thread Stefan Milenkovic via cfe-commits
https://github.com/stemil01 edited https://github.com/llvm/llvm-project/pull/164183 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Mark `_lstrcatA`, `_strcpyA`, and `_strdup` as insecure on Windows in `SecuritySyntaxChecker` (PR #164183)

2025-10-19 Thread Stefan Milenkovic via cfe-commits
https://github.com/stemil01 created https://github.com/llvm/llvm-project/pull/164183 Addresses issue #103038. Some of the functions mentioned in that issue are already covered or do not exist under the specified names. Therefore, this patch adds only the three functions listed above. There i

[clang] [clang][analyzer] Mark `_lstrcatA`, `_strcpyA`, and `_strdup` as insecure on Windows in `SecuritySyntaxChecker` (PR #164183)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Stefan Milenkovic (stemil01) Changes Addresses issue #103038. Some of the functions mentioned in that issue are already covered or do not exist under the specified names. Therefore, this patch adds only the three functi

[clang] [clang][analyzer] Mark `_lstrcatA`, `_strcpyA`, and `_strdup` as insecure on Windows in `SecuritySyntaxChecker` (PR #164183)

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

[clang] [clang][analyzer] Add new option to specify functions `SecuritySyntaxChecker` warns about. (PR #164184)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Stefan Milenkovic (stemil01) Changes Addresses #103038. Currently, the list of functions for which `SecuritySyntaxChecker` emits warnings is fixed. This patch adds a new command-line option `Warn`, which allows users to

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-10-19 Thread Hubert Tong via cfe-commits
@@ -986,6 +989,14 @@ def warn_module_conflict : Warning< InGroup; // C++20 modules +def err_pp_module_name_is_macro : Error< + "%select{module|partition}0 name component %1 cannot be a object-like macro">; +def err_pp_module_expected_ident : Error< + "expected %select{ide

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-10-19 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 requested changes to this pull request. @ojhunt Thanks for tons of fixes! We have one more usage of unions in libunwind.cpp which is technically UB. I've proposed a fix for this. See commit a29af825c71d70e83445cd4214f7145642201506 from my branch [ptrauth-unwinding-

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-10-19 Thread Daniil Kovalev via cfe-commits
@@ -118,22 +118,62 @@ _LIBUNWIND_HIDDEN int __unw_set_reg(unw_cursor_t *cursor, unw_regnum_t regNum, typedef LocalAddressSpace::pint_t pint_t; AbstractUnwindCursor *co = (AbstractUnwindCursor *)cursor; if (co->validReg(regNum)) { -co->setReg(regNum, (pint_t)value);

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-10-19 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 edited https://github.com/llvm/llvm-project/pull/143230 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add new option to specify functions `SecuritySyntaxChecker` warns about. (PR #164184)

2025-10-19 Thread Stefan Milenkovic via cfe-commits
https://github.com/stemil01 edited https://github.com/llvm/llvm-project/pull/164184 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-10-19 Thread Daniil Kovalev via cfe-commits
@@ -22,7 +22,6 @@ #include "dwarf2.h" #include "libunwind_ext.h" - kovdan01 wrote: Nit: unintended formatting change https://github.com/llvm/llvm-project/pull/143230 ___ cfe-commits mailing list [email protected]

[clang] [clang][analyzer] Add new option to specify functions `SecuritySyntaxChecker` warns about (PR #164184)

2025-10-19 Thread Stefan Milenkovic via cfe-commits
https://github.com/stemil01 edited https://github.com/llvm/llvm-project/pull/164184 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC][NFC] Provide addition support macros to ptrauth.h (PR #161027)

2025-10-19 Thread Daniil Kovalev via cfe-commits
kovdan01 wrote: @ojhunt Can we consider this PR obsolete and close it since we no longer use this union approach and things are already (almost) fixed in the main unwinding PR #143230? https://github.com/llvm/llvm-project/pull/161027 ___ cfe-commits

[clang] dd6a6ba - [clang-format] Reuse AlignTokens for aligning macros (#164120)

2025-10-19 Thread via cfe-commits
Author: Björn Schäpers Date: 2025-10-20T00:04:42+02:00 New Revision: dd6a6bac708235fe2ed80670cd873258430264c2 URL: https://github.com/llvm/llvm-project/commit/dd6a6bac708235fe2ed80670cd873258430264c2 DIFF: https://github.com/llvm/llvm-project/commit/dd6a6bac708235fe2ed80670cd873258430264c2.diff

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks auto_merge_disabled https://github.com/llvm/llvm-project/pull/164120 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Reuse AlignTokens for aligning macros (PR #164120)

2025-10-19 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks closed https://github.com/llvm/llvm-project/pull/164120 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Simplify AlignMacroMatches (PR #164122)

2025-10-19 Thread via cfe-commits
=?utf-8?q?Björn_Schäpers?= Message-ID: In-Reply-To: @@ -656,7 +656,6 @@ void WhitespaceManager::alignConsecutiveMacros() { auto AlignMacrosMatches = [](const Change &C) { const FormatToken *Current = C.Tok; owenca wrote: This is unique in that a loca

[clang] [clang-format][NFC] Simplify AlignMacroMatches (PR #164122)

2025-10-19 Thread via cfe-commits
=?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= Message-ID: In-Reply-To: https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/164122 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-b

[clang] [llvm] [ARM][KCFI] Add backend support for Kernel Control-Flow Integrity (PR #163698)

2025-10-19 Thread David Green via cfe-commits
@@ -530,6 +534,9 @@ void ARMPassConfig::addPreEmitPass() { } void ARMPassConfig::addPreEmitPass2() { + // Unpack KCFI bundles before AsmPrinter + addPass(createUnpackMachineBundles(nullptr)); davemgreen wrote: There is already a UnpackMachineBundles in addP

[clang] [llvm] [ARM][KCFI] Add backend support for Kernel Control-Flow Integrity (PR #163698)

2025-10-19 Thread David Green via cfe-commits
@@ -6535,6 +6535,15 @@ def CMP_SWAP_64 : PseudoInst<(outs GPRPair:$Rd, GPRPair:$addr_temp_out), def : Pat<(atomic_fence (timm), 0), (MEMBARRIER)>; +//===--===// +// KCFI check pseudo-instruction. +//===-

[clang] [llvm] [ARM][KCFI] Add backend support for Kernel Control-Flow Integrity (PR #163698)

2025-10-19 Thread David Green via cfe-commits
@@ -0,0 +1,191 @@ +; RUN: llc -mtriple=thumbv6m-none-eabi < %s | FileCheck %s davemgreen wrote: I would recommend update_llc_test_checks wherever it is sensible to use it. https://github.com/llvm/llvm-project/pull/163698 _

[clang] [Clang] Give empty template parameter mapping an empty MLTAL (PR #164051)

2025-10-19 Thread Younan Zhang via cfe-commits
@@ -564,12 +564,17 @@ ExprResult ConstraintSatisfactionChecker::EvaluateAtomicConstraint( std::optional ConstraintSatisfactionChecker::SubstitutionInTemplateArguments( const NormalizedConstraintWithParamMapping &Constraint, -MultiLevelTemplateArgumentList MLTAL, -l

[clang] [CIR] Add VTable class name for array types (PR #164155)

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

[clang] [CIR] Add VTable class name for array types (PR #164155)

2025-10-19 Thread Mihail Mihov via cfe-commits
https://github.com/MihailMihov created https://github.com/llvm/llvm-project/pull/164155 This PR adds the VTable name `_ZTVN10__cxxabiv117__array_type_infoE` for `Type::ConstantArray`, `Type::IncompleteArray` and `Type::VariableArray` in `ItaniumRTTIBuilder::BuildVTablePointer`. issue #163601

[clang] [CIR] Add VTable class name for array types (PR #164155)

2025-10-19 Thread Mihail Mihov via cfe-commits
MihailMihov wrote: Currently there is no test for this, as I'm not sure how to test it. In the linked issue, `throw` was suggested, but I don't think that can work for arrays as they always go through the array-to-pointer conversion. `typeid` can't be used in the tests and I think it's not imp

[clang] [clang-tools-extra] Draft, do not review (PR #164156)

2025-10-19 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/164156 >From 5a22a1db87a1d45ef95e33944a87a101769fe8e2 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 19 Oct 2025 00:46:03 -0700 Subject: [PATCH 1/4] [clang][Sema] Attempt to parse delayed templates at t

[clang] [clang-tools-extra] Draft, do not review (PR #164156)

2025-10-19 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/164156 None >From 5a22a1db87a1d45ef95e33944a87a101769fe8e2 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 19 Oct 2025 00:46:03 -0700 Subject: [PATCH 1/3] [clang][Sema] Attempt to parse delayed template

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-10-19 Thread via cfe-commits
https://github.com/huixie90 updated https://github.com/llvm/llvm-project/pull/78707 >From 0dc5bf91516e2138ed73b602cb17943ef6bcc878 Mon Sep 17 00:00:00 2001 From: Hui Date: Fri, 19 Jan 2024 12:33:43 + Subject: [PATCH 1/9] [libc++] fix _Atomic c11 compare exchange does not update expected re

[clang] [clang-tools-extra] Draft, do not review (PR #164156)

2025-10-19 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 origin/main HEAD --extensions cpp -- clang-tools-extra/test/clang-tidy/checkers/bugpr

[clang-tools-extra] f5ae102 - [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings 3/N (#164085)

2025-10-19 Thread via cfe-commits
Author: Baranov Victor Date: 2025-10-19T14:33:17+03:00 New Revision: f5ae102745bd5c2abf7b9bcdc1f7e765951c648b URL: https://github.com/llvm/llvm-project/commit/f5ae102745bd5c2abf7b9bcdc1f7e765951c648b DIFF: https://github.com/llvm/llvm-project/commit/f5ae102745bd5c2abf7b9bcdc1f7e765951c648b.diff

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings 3/N (PR #164085)

2025-10-19 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/164085 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fd073a3 - [clang] separate recursive instantiation check from CodeSynthesisContext (#162224)

2025-10-19 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-10-19T14:49:40-03:00 New Revision: fd073a3fbaf0b05fae61cca5def80ce0adaeadb3 URL: https://github.com/llvm/llvm-project/commit/fd073a3fbaf0b05fae61cca5def80ce0adaeadb3 DIFF: https://github.com/llvm/llvm-project/commit/fd073a3fbaf0b05fae61cca5def80ce0adaeadb3.dif

[clang] [clang] separate recursive instantiation check from CodeSynthesisContext (PR #162224)

2025-10-19 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/162224 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] separate recursive instantiation check from CodeSynthesisContext (PR #162224)

2025-10-19 Thread via cfe-commits
@@ -3554,12 +3543,26 @@ namespace clang { } } -bool -Sema::InstantiateClass(SourceLocation PointOfInstantiation, - CXXRecordDecl *Instantiation, CXXRecordDecl *Pattern, - const MultiLevelTemplateArgumentList &TemplateArgs, -

[clang] [clang] separate recursive instantiation check from CodeSynthesisContext (PR #162224)

2025-10-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang` at step 4 "build stage 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/17725 Here is the relevant piece

[clang] [NFC][doc] Mark P1857R3 as partial implemented (PR #164095)

2025-10-19 Thread via cfe-commits
@@ -926,7 +926,14 @@ C++20 implementation status https://wg21.link/p1857r3";>P1857R3 -No + + +>Clang 21(Partial) h-vetinari wrote: ```suggestion Clang 21 (Partial) ``` https://github.com/

[clang] [CIR] CompoundLiteralExpr for Aggregate types (PR #164172)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Upstream support the CompoundLiteralExpr for Aggregate types --- Full diff: https://github.com/llvm/llvm-project/pull/164172.diff 3 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenExprAggrega

[clang] [CIR] CompoundLiteralExpr for Aggregate types (PR #164172)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Upstream support the CompoundLiteralExpr for Aggregate types --- Full diff: https://github.com/llvm/llvm-project/pull/164172.diff 3 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenExprAggregate

[clang] [Clang] only convert dependency filename to native form when MS-compatible (PR #160903)

2025-10-19 Thread Ruoyu Zhong via cfe-commits
https://github.com/ZhongRuoyu updated https://github.com/llvm/llvm-project/pull/160903 >From 181c4d65060405cdba484c18ae09b3fe1255414d Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Fri, 26 Sep 2025 23:17:32 +0800 Subject: [PATCH] [Clang] only convert dependency filename to native form when M

[clang] b2574c9 - [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (#78707)

2025-10-19 Thread via cfe-commits
Author: Hui Date: 2025-10-19T19:25:00+01:00 New Revision: b2574c9dad487be92605316efd929738a5f6d851 URL: https://github.com/llvm/llvm-project/commit/b2574c9dad487be92605316efd929738a5f6d851 DIFF: https://github.com/llvm/llvm-project/commit/b2574c9dad487be92605316efd929738a5f6d851.diff LOG: [cla

[clang] [CIR] CompoundLiteralExpr for Aggregate types (PR #164172)

2025-10-19 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/164172 Upstream support the CompoundLiteralExpr for Aggregate types >From 4509f800a08d11eb5463da05b73962715978e685 Mon Sep 17 00:00:00 2001 From: Amr Hesham Date: Sun, 19 Oct 2025 20:26:54 +0200 Subject: [PATCH]

[clang] [libcxx] [clang] [libc++] fix _Atomic c11 compare exchange does not update expected results (PR #78707)

2025-10-19 Thread via cfe-commits
https://github.com/huixie90 closed https://github.com/llvm/llvm-project/pull/78707 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 4+ args. NFC. (PR #164173)

2025-10-19 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar created https://github.com/llvm/llvm-project/pull/164173 Update `.Cases` and `.CasesLower` with 4+ args to use the `initializer_list` overload. The deprecation of these functions will come in a separate PR. For more context, see: https://github.com/llvm/llvm-project/pu

[clang] f072036 - [clang-format][NFC] Annotate attribute squares more effectively (#164052)

2025-10-19 Thread via cfe-commits
Author: owenca Date: 2025-10-19T11:38:08-07:00 New Revision: f0720363d39746c906647a23147f17185f5c1433 URL: https://github.com/llvm/llvm-project/commit/f0720363d39746c906647a23147f17185f5c1433 DIFF: https://github.com/llvm/llvm-project/commit/f0720363d39746c906647a23147f17185f5c1433.diff LOG: [

[clang] [lld] [llvm] [ADT] Prepare for deprecation of StringSwitch cases with 4+ args. NFC. (PR #164173)

2025-10-19 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar updated https://github.com/llvm/llvm-project/pull/164173 >From b06d53db357a5620abed42dcb79e1d2ada19178c Mon Sep 17 00:00:00 2001 From: Jakub Kuderski Date: Sun, 19 Oct 2025 14:30:03 -0400 Subject: [PATCH 1/2] [ADT] Prepare for deprecation of StringSwitch cases with 4+

[clang] [clang-format][NFC] Annotate attribute squares more effectively (PR #164052)

2025-10-19 Thread via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/164052 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] Draft, do not review (PR #164156)

2025-10-19 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/164156 >From 5a22a1db87a1d45ef95e33944a87a101769fe8e2 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 19 Oct 2025 00:46:03 -0700 Subject: [PATCH 1/5] [clang][Sema] Attempt to parse delayed templates at t

[clang] [clang-tools-extra] Draft, do not review (PR #164156)

2025-10-19 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/164156 >From 5a22a1db87a1d45ef95e33944a87a101769fe8e2 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 19 Oct 2025 00:46:03 -0700 Subject: [PATCH 1/5] [clang][Sema] Attempt to parse delayed templates at t

[clang] [clang-tools-extra] Draft for CI feedback, do not review (PR #164156)

2025-10-19 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/164156 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings 3/N (PR #164085)

2025-10-19 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/164085 >From 64d7d69ca3bd9d78dd0b2c3522919dbe4d13e3ab Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sat, 18 Oct 2025 16:44:01 +0300 Subject: [PATCH 1/2] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-n

[clang-tools-extra] cb79d8f - [clang-tidy][NFC] Fix miscellaneous clang-tidy warnings over codebase (#164096)

2025-10-19 Thread via cfe-commits
Author: Baranov Victor Date: 2025-10-19T14:19:06+03:00 New Revision: cb79d8f77c12dedbbd32cf5fe94f9651582795d3 URL: https://github.com/llvm/llvm-project/commit/cb79d8f77c12dedbbd32cf5fe94f9651582795d3 DIFF: https://github.com/llvm/llvm-project/commit/cb79d8f77c12dedbbd32cf5fe94f9651582795d3.diff

[clang-tools-extra] [clang-tidy][NFC] Fix miscellaneous clang-tidy warnings over codebase (PR #164096)

2025-10-19 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/164096 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings 3/N (PR #164085)

2025-10-19 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 origin/main HEAD --extensions h,cpp -- clang-tools-extra/clang-tidy/android/CloexecCh

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings 3/N (PR #164085)

2025-10-19 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/164085 >From 64d7d69ca3bd9d78dd0b2c3522919dbe4d13e3ab Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sat, 18 Oct 2025 16:44:01 +0300 Subject: [PATCH 1/3] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-n

[clang] [clang] Reland: separate recursive instantiation check from CodeSynthesisContext (PR #164177)

2025-10-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This makes pushing / popping CodeSynthesisContexts much cheaper, as it delegates to another class this functionality which is not actually needed in most cases. It also converts a bunch of these uses in

[clang] 63ca2fd - [clang] Reland: separate recursive instantiation check from CodeSynthesisContext (#164177)

2025-10-19 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-10-19T16:45:50-03:00 New Revision: 63ca2fd7a16f532a95e53780220d2eae0debb8d9 URL: https://github.com/llvm/llvm-project/commit/63ca2fd7a16f532a95e53780220d2eae0debb8d9 DIFF: https://github.com/llvm/llvm-project/commit/63ca2fd7a16f532a95e53780220d2eae0debb8d9.dif

[clang] [clang] Reland: separate recursive instantiation check from CodeSynthesisContext (PR #164177)

2025-10-19 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/164177 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Reland: separate recursive instantiation check from CodeSynthesisContext (PR #164177)

2025-10-19 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/164177 This makes pushing / popping CodeSynthesisContexts much cheaper, as it delegates to another class this functionality which is not actually needed in most cases. It also converts a bunch of these uses into jus

  1   2   3   >