[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-11-08 Thread Sergei Barannikov via cfe-commits
@@ -20,3 +20,10 @@ r (long long __complex__ a, long long __complex__ b) { return 0; } + +// CHECK-LABEL: define{{.*}} void @s(ptr dead_on_unwind noalias writable sret(fp128) align 8 %agg.result, ptr noundef byval(fp128) align 8 %0) #0 +long double +s(long double a) +{ +

[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-11-08 Thread Sergei Barannikov via cfe-commits
@@ -1057,85 +1051,67 @@ define void @test_sincos_f128(ptr sret({ fp128, fp128 }) %ret, ptr %in) #0 { define void @test_sincos_v2f128(ptr sret({ <2 x fp128>, <2 x fp128> }) %ret, ptr %in) #0 { ; SPARC32-LABEL: test_sincos_v2f128: ; SPARC32: ! %bb.0: -; SPARC32-NEXT:s

[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-11-08 Thread Sergei Barannikov via cfe-commits
@@ -26,19 +26,29 @@ class SparcV8ABIInfo : public DefaultABIInfo { private: ABIArgInfo classifyReturnType(QualType RetTy) const; + ABIArgInfo classifyArgumentType(QualType Ty) const; void computeInfo(CGFunctionInfo &FI) const override; }; } // end anonymous namespace

[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-11-08 Thread Sergei Barannikov via cfe-commits
@@ -24,8 +24,8 @@ def CC_Sparc32 : CallingConv<[ // As are v2i32 arguments (this would be the default behavior for // v2i32 if it wasn't allocated to the IntPair register-class) CCIfType<[v2i32], CCCustom<"CC_Sparc_Assign_Split_64">>, - - + // f128 arguments are passed i

[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-11-08 Thread Sergei Barannikov via cfe-commits
@@ -26,19 +26,29 @@ class SparcV8ABIInfo : public DefaultABIInfo { private: ABIArgInfo classifyReturnType(QualType RetTy) const; + ABIArgInfo classifyArgumentType(QualType Ty) const; void computeInfo(CGFunctionInfo &FI) const override; }; } // end anonymous namespace

[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-11-08 Thread Sergei Barannikov via cfe-commits
@@ -241,3 +241,9 @@ entry: store fp128 %1, ptr %scalar.result, align 8 ret void } + +define fp128 @f128_direct(fp128 %num) { +%ret = call fp128 @f128_callee(fp128 %num, fp128 %num) +ret fp128 %ret +} +declare fp128 @f128_callee(fp128 %a, fp128 %b) s

[clang] [compiler-rt] [llvm] [SPARC] Properly handle CC for long double on sparc32 (PR #162226)

2025-11-08 Thread Sergei Barannikov via cfe-commits
@@ -960,9 +960,9 @@ else () list(APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET) endif() - # For RISCV32, we must force enable int128 for compiling long + # For RISCV32 and 32-bit SPARC, we must force enable int128 for c

[clang] [clang] Remove redundant typename (NFC) (PR #167207)

2025-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Identified with readability-redundant-typename. --- Full diff: https://github.com/llvm/llvm-project/pull/167207.diff 2 Files Affected: - (modified) clang

[clang] [clang] Remove redundant typename (NFC) (PR #167207)

2025-11-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/167207 Identified with readability-redundant-typename. >From a6eaf2a381a49bab5341662173ed13b96e408286 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 2 Nov 2025 16:01:58 -0800 Subject: [PATCH] [clang] Re

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

2025-11-08 Thread via cfe-commits
@@ -466,6 +466,9 @@ def err_pp_embed_device_file : Error< def ext_pp_extra_tokens_at_eol : ExtWarn< "extra tokens at end of #%0 directive">, InGroup; +def ext_pp_extra_tokens_at_module_directive_eol +: Warning<"extra tokens at end of '%0' directive">, + InGroup; ---

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

2025-11-08 Thread 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

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

2025-11-08 Thread via cfe-commits
@@ -142,6 +142,15 @@ void printDependencyDirectivesAsSource( /// \returns true if any C++20 named modules related directive was found. bool scanInputForCXX20ModulesUsage(StringRef Source); +/// Scan an input source buffer, and check whether the input ssource is a +/// preproce

[clang] [clang][Diagnostic] Clarify error message for auto (PR #149781)

2025-11-08 Thread Yanzuo Liu via cfe-commits
@@ -398,6 +398,8 @@ Improvements to Clang's diagnostics - Clang now emits a diagnostic in case `vector_size` or `ext_vector_type` attributes are used with a negative size (#GH165463). +- Improved diagnostic location for templates declared inside local classes. --

[clang] [clang][Diagnostic] Clarify error message for auto (PR #149781)

2025-11-08 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis commented: LGTM modulo comments and tests. I'm not sure if tests are enough. https://github.com/llvm/llvm-project/pull/149781 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [clang][Diagnostic] Clarify error message for auto (PR #149781)

2025-11-08 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/149781 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Diagnostic] Clarify error message for auto (PR #149781)

2025-11-08 Thread Yanzuo Liu via cfe-commits
@@ -8454,24 +8454,37 @@ Sema::CheckTemplateDeclScope(Scope *S, TemplateParameterList *TemplateParams) { // C++ [temp.class.spec]p6: [P2096] // A partial specialization may be declared in any scope in which the // corresponding primary template may be defined. + auto

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-08 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/167159 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-08 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/167159 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-08 Thread Zhikai Zeng via cfe-commits
@@ -2937,6 +2937,8 @@ InitListChecker::CheckDesignatedInitializer(const InitializedEntity &Entity, } FieldDecl *KnownField = D->getFieldDecl(); +if (KnownField && KnownField->getParent() != RD) + KnownField = nullptr; Backl1ght wrote: > We n

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-08 Thread Zhikai Zeng via cfe-commits
@@ -459,6 +459,8 @@ Bug Fixes in This Version - Fixed a crash triggered by unterminated ``__has_embed``. (#GH162953) - Accept empty enumerations in MSVC-compatible C mode. (#GH114402) - Fixed false-positive shadow diagnostics for lambdas in explicit object member functions. (#

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-08 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght updated https://github.com/llvm/llvm-project/pull/167159 >From 410eb27c9c3d9cbc65011559657b93ef94141e0b Mon Sep 17 00:00:00 2001 From: Backl1ght Date: Sat, 8 Nov 2025 17:13:21 + Subject: [PATCH 1/3] add check --- clang/docs/ReleaseNotes.rst |

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-08 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/167159 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Rename `cert-flp30-c` to `bugprone-float-loop-counter` (PR #166571)

2025-11-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-multistage` running on `ppc64le-clang-multistage-test` while building `clang-tools-extra` at step 11 "ninja check 2". Full details are available at: https://lab.llvm.org/buildbot/#/builders/76/builds/13345

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-08 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/167159 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-08 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/167159 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-08 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/167159 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Use StringMap::contains (NFC) (PR #167186)

2025-11-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/167186 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5361e10 - [LifetimeSafety] Use StringMap::contains (NFC) (#167186)

2025-11-08 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-11-08T22:30:09-08:00 New Revision: 5361e10276d975161697f3a3af9e004ffd43ffb3 URL: https://github.com/llvm/llvm-project/commit/5361e10276d975161697f3a3af9e004ffd43ffb3 DIFF: https://github.com/llvm/llvm-project/commit/5361e10276d975161697f3a3af9e004ffd43ffb3.diff L

[clang] [LifetimeSafety] Use StringMap::contains (NFC) (PR #167186)

2025-11-08 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/167186 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Improve diagnostic for 'auto' in local-class member params (PR #167201)

2025-11-08 Thread Sai Deepak Sana via cfe-commits
https://github.com/saideepaksana edited https://github.com/llvm/llvm-project/pull/167201 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Improve diagnostic for 'auto' in local-class member params (PR #167201)

2025-11-08 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis requested changes to this pull request. If AI was used to create PR, please disclose it. And to what extent it was used. Please remove unrelated changes. Please read . Please remove duplicate test

[clang] [Sema] Improve diagnostic for 'auto' in local-class member params (PR #167201)

2025-11-08 Thread Sai Deepak Sana via cfe-commits
saideepaksana wrote: Hi Our main changes are in the file `SemaTemplate.cpp` and there are some changes from other people, which when we are trying to change, getting error's locally. So our main changes in the `SemaTemplate.cpp` are in the lines 8240 only, ``` bool Sema::CheckTemplateDeclSco

[clang-tools-extra] [clang-tidy] New check for static_cast of an enum class type (PR #167144)

2025-11-08 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,80 @@ +//===--===// +// +// 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-tools-extra] [clang-tidy] New check for static_cast of an enum class type (PR #167144)

2025-11-08 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis requested changes to this pull request. Thank you for your patch! If AI was used to create PR, please disclose it. And to what extent it was used. Please finish https://github.com/llvm/llvm-project/issues/71543#issuecomment-3171781147. https://github.com/llvm/llvm-pro

[clang-tools-extra] [clang-tidy] New check for static_cast of an enum class type (PR #167144)

2025-11-08 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,80 @@ +//===--===// +// +// 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-tools-extra] [clang-tidy] New check for static_cast of an enum class type (PR #167144)

2025-11-08 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/167144 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Improve diagnostic for 'auto' in local-class member params (PR #167201)

2025-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sai Deepak Sana (saideepaksana) Changes Fixes #147324 **Summary:** Fixes missing source location (filename, line, column) in template diagnostics when templates or abbreviated function templates (auto parameters) are declared inside loca

[clang] clang: improve diagnostic for 'auto' used in disallowed local class contexts (PR #167164)

2025-11-08 Thread Sai Deepak Sana via cfe-commits
https://github.com/saideepaksana closed https://github.com/llvm/llvm-project/pull/167164 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Improve diagnostic for 'auto' in local-class member params (PR #167201)

2025-11-08 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] [Sema] Improve diagnostic for 'auto' in local-class member params (PR #167201)

2025-11-08 Thread Sai Deepak Sana via cfe-commits
https://github.com/saideepaksana created https://github.com/llvm/llvm-project/pull/167201 Fixes #147324 **Summary:** Fixes missing source location (filename, line, column) in template diagnostics when templates or abbreviated function templates (auto parameters) are declared inside local clas

[clang] [Clang] Add C++11 spelling support for guarded_by attribute (PR #167048)

2025-11-08 Thread Pranjal Prajapati via cfe-commits
https://github.com/Pranjal095 updated https://github.com/llvm/llvm-project/pull/167048 >From aa901d58c5d5d294d342ee079d2389b2c67ec8ba Mon Sep 17 00:00:00 2001 From: Pranjal095 Date: Sat, 8 Nov 2025 04:37:26 +0530 Subject: [PATCH 1/2] [Clang] Add C++11 spelling support for guarded_by attribute

[clang] [C2y] Allow static local variables in inline functions with external … (PR #167086)

2025-11-08 Thread Pranjal Prajapati via cfe-commits
@@ -8111,6 +8111,11 @@ NamedDecl *Sema::ActOnVariableDeclarator( // An inline definition of a function with external linkage shall // not contain a definition of a modifiable object with static or // thread storage duration... + // + // WG14 N3622 which removed th

[clang] [C2y] Allow static local variables in inline functions with external … (PR #167086)

2025-11-08 Thread Yanzuo Liu via cfe-commits
@@ -8111,6 +8111,11 @@ NamedDecl *Sema::ActOnVariableDeclarator( // An inline definition of a function with external linkage shall // not contain a definition of a modifiable object with static or // thread storage duration... + // + // WG14 N3622 which removed th

[clang] [clang][clang-cl] Add -fms-preprocessor-compat and support /Zc:preprocessor (PR #167200)

2025-11-08 Thread Josh Dowell via cfe-commits
https://github.com/Slartibarty updated https://github.com/llvm/llvm-project/pull/167200 >From 22f0474ce8fbf296f409e34842f344db4bf5a7f6 Mon Sep 17 00:00:00 2001 From: Josh Dowell Date: Fri, 7 Nov 2025 21:49:40 + Subject: [PATCH 1/2] [clang][clang-cl] Add -fms-preprocessor-compat (#147304) T

[clang] [clang][clang-cl] Add -fms-preprocessor-compat and support /Zc:preprocessor (PR #167200)

2025-11-08 Thread Josh Dowell via cfe-commits
Slartibarty wrote: CC'ing @AaronBallman since he was active in the original issue report. I assume the auto-assigned labels will help other maintainers see this too. https://github.com/llvm/llvm-project/pull/167200 ___ cfe-commits mailing list cfe-com

[clang] clang: improve diagnostic for 'auto' used in disallowed local class contexts (PR #167164)

2025-11-08 Thread Sai Deepak Sana via cfe-commits
saideepaksana wrote: Our local changes weren't upto date, and when we tried to commit new changes old ones are getting deleted, and also there an unnecessary function which didn't got deleted, Give us some time will do the right commits https://github.com/llvm/llvm-project/pull/167164

[clang] [clang][clang-cl] Add -fms-preprocessor-compat and support /Zc:preprocessor (PR #167200)

2025-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Josh Dowell (Slartibarty) Changes This adds a new compiler flag called `-fms-preprocessor-compat` which may be used to control whether the preprocessor enables full Microsoft compatibility mode, which was previously rolled into `-fms-comp

[clang] [clang][clang-cl] Add -fms-preprocessor-compat and support /Zc:preprocessor (PR #167200)

2025-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Josh Dowell (Slartibarty) Changes This adds a new compiler flag called `-fms-preprocessor-compat` which may be used to control whether the preprocessor enables full Microsoft compatibility mode, which was previously rolled into `-f

[clang] [clang][clang-cl] Add -fms-preprocessor-compat and support /Zc:preprocessor (PR #167200)

2025-11-08 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][clang-cl] Add -fms-preprocessor-compat and support /Zc:preprocessor (PR #167200)

2025-11-08 Thread Josh Dowell via cfe-commits
https://github.com/Slartibarty created https://github.com/llvm/llvm-project/pull/167200 This adds a new compiler flag called `-fms-preprocessor-compat` which may be used to control whether the preprocessor enables full Microsoft compatibility mode, which was previously rolled into `-fms-compat

[clang-tools-extra] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks outside of 'cert' module and give a proper name (PR #167143)

2025-11-08 Thread via cfe-commits
https://github.com/luobochuanqi edited https://github.com/llvm/llvm-project/pull/167143 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks outside of … (PR #167143)

2025-11-08 Thread via cfe-commits
zeyi2 wrote: Please update the PR title, IMO we shouldn't split it into separate lines. https://github.com/llvm/llvm-project/pull/167143 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks outside of … (PR #167143)

2025-11-08 Thread via cfe-commits
https://github.com/zeyi2 edited https://github.com/llvm/llvm-project/pull/167143 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks outside of … (PR #167143)

2025-11-08 Thread via cfe-commits
https://github.com/zeyi2 edited https://github.com/llvm/llvm-project/pull/167143 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks outside of … (PR #167143)

2025-11-08 Thread via cfe-commits
https://github.com/luobochuanqi updated https://github.com/llvm/llvm-project/pull/167143 >From fd994fda563cd55dbfd9ad536f06b8bce41b4f11 Mon Sep 17 00:00:00 2001 From: luobochuanqi Date: Sat, 8 Nov 2025 21:47:17 +0800 Subject: [PATCH 1/5] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks

[clang-tools-extra] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks outside of … (PR #167143)

2025-11-08 Thread via cfe-commits
https://github.com/luobochuanqi updated https://github.com/llvm/llvm-project/pull/167143 >From fd994fda563cd55dbfd9ad536f06b8bce41b4f11 Mon Sep 17 00:00:00 2001 From: luobochuanqi Date: Sat, 8 Nov 2025 21:47:17 +0800 Subject: [PATCH 1/4] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-08 Thread Younan Zhang via cfe-commits
@@ -459,6 +459,8 @@ Bug Fixes in This Version - Fixed a crash triggered by unterminated ``__has_embed``. (#GH162953) - Accept empty enumerations in MSVC-compatible C mode. (#GH114402) - Fixed false-positive shadow diagnostics for lambdas in explicit object member functions. (#

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-08 Thread Younan Zhang via cfe-commits
@@ -2937,6 +2937,8 @@ InitListChecker::CheckDesignatedInitializer(const InitializedEntity &Entity, } FieldDecl *KnownField = D->getFieldDecl(); +if (KnownField && KnownField->getParent() != RD) + KnownField = nullptr; zyn0217 wrote: We need

[clang-tools-extra] [clang-tidy] Fix `readability-container-data-pointer` check (PR #165636)

2025-11-08 Thread via cfe-commits
@@ -71,20 +71,20 @@ void ContainerDataPointerCheck::registerMatchers(MatchFinder *Finder) { const auto Zero = integerLiteral(equals(0)); - const auto SubscriptOperator = callee(cxxMethodDecl(hasName("operator[]"))); - - Finder->addMatcher( + const auto AddressOfMatcher

[clang-tools-extra] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks outside of … (PR #167143)

2025-11-08 Thread via cfe-commits
https://github.com/zeyi2 deleted https://github.com/llvm/llvm-project/pull/167143 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Lex] Warn on trailing whitespace in #include filenames (PR #167163)

2025-11-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 requested changes to this pull request. Please tell your AI to stop changing unrelated lines before generating something else. https://github.com/llvm/llvm-project/pull/167163 ___ cfe-commits mailing list [email protected]

[clang-tools-extra] [clang-tidy] Fix `readability-container-data-pointer` check (PR #165636)

2025-11-08 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/165636 >From f29accd639928c3560309a15bf42e81b65e5b20f Mon Sep 17 00:00:00 2001 From: mtx Date: Thu, 30 Oct 2025 02:56:11 +0800 Subject: [PATCH 01/11] [clang-tidy] Fix `readability-container-data-pointer` check --- ...

[clang] clang: improve diagnostic for 'auto' used in disallowed local class contexts (PR #167164)

2025-11-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 requested changes to this pull request. Can you please revert unrelated changes? That makes review very hard. Also, the entire patch looks like AI-generated. If that's the case, please clarify what part you are fixing with an AI and why you are considering the fix is

[clang-tools-extra] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks outside of … (PR #167143)

2025-11-08 Thread via cfe-commits
https://github.com/luobochuanqi updated https://github.com/llvm/llvm-project/pull/167143 >From fd994fda563cd55dbfd9ad536f06b8bce41b4f11 Mon Sep 17 00:00:00 2001 From: luobochuanqi Date: Sat, 8 Nov 2025 21:47:17 +0800 Subject: [PATCH 1/3] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks

[clang-tools-extra] [clang-tidy][NFC] Enable misc-const-correctness rule in clang-tidy codebase (PR #167172)

2025-11-08 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook approved this pull request. https://github.com/llvm/llvm-project/pull/167172 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] clang-format reflow comments disable star: Fixes #58710 (PR #167146)

2025-11-08 Thread via cfe-commits
https://github.com/bhanuponguru updated https://github.com/llvm/llvm-project/pull/167146 >From 49b5691690ac91de54e6b576597a085ec9efda46 Mon Sep 17 00:00:00 2001 From: bhanuponguru Date: Fri, 7 Nov 2025 09:25:46 + Subject: [PATCH 1/3] added a style for reflow comments to not add a star when

[clang] [clang-format] Option to insert spaces before the closing `*/` (PR #162105)

2025-11-08 Thread via cfe-commits
https://github.com/Men-cotton updated https://github.com/llvm/llvm-project/pull/162105 >From 7a29a63fe2bfca5e7bf6af5ab2fd3f0ff1ea52cf Mon Sep 17 00:00:00 2001 From: mencotton Date: Tue, 7 Oct 2025 23:14:20 +0900 Subject: [PATCH 01/19] [clang-format] Add SpaceInComments controls for block comme

[clang] [clang-format] Option to insert spaces before the closing `*/` (PR #162105)

2025-11-08 Thread via cfe-commits
https://github.com/Men-cotton edited https://github.com/llvm/llvm-project/pull/162105 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Enable misc-const-correctness rule in clang-tidy codebase (PR #167172)

2025-11-08 Thread via cfe-commits
https://github.com/EugeneZelenko approved this pull request. https://github.com/llvm/llvm-project/pull/167172 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks outside of … (PR #167143)

2025-11-08 Thread via cfe-commits
https://github.com/zeyi2 edited https://github.com/llvm/llvm-project/pull/167143 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Move 'cert-msc51-cpp', 'cert-msc32-c' checks outside of … (PR #167143)

2025-11-08 Thread via cfe-commits
@@ -4,4 +4,4 @@ cert-msc51-cpp == The `cert-msc51-cpp` check is an alias, please see -:doc:`bugprone-random-generator-seed <../bugprone/random-generator-seed>` for more information. +:doc:`bugprone-random-generator-seed <../bugprone/random-generator-seed.html>` f

[clang] [llvm] Make sanitizer special case list slash-agnostic (PR #149886)

2025-11-08 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: I just realized we missed a trivial solution: **I think it's reasonable to expect that a single pattern does not mix \ / as a path separator in the same pattern.** So, on windows we match the path as is, and then also match the converted version. Maybe: As a bonus we can ad

[clang] [llvm] [clang] Switch warning suppression multi-match rule to "last match takes precedence" (PR #162237)

2025-11-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/162237 >From b0aa1c4f6462bba4700a7b72804370bd9fddc453 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 7 Oct 2025 00:56:26 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20ch?= =?U

[clang] [clang-format] Don't swap `(const override)` with QAS_Right (PR #167191)

2025-11-08 Thread via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/167191 >From 7e061a74b3584ebbcbf6c383ae7155ec666c921f Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 22 Aug 2025 00:22:02 -0700 Subject: [PATCH] [clang-format] Don't swap `(const override)` with QAS_Right Fixes #15

[clang] [llvm] [clang] Switch warning suppression multi-match rule to "last match takes precedence" (PR #162237)

2025-11-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/162237 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Don't swap `(const override)` with QAS_Right (PR #167191)

2025-11-08 Thread via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/167191 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Don't swap `(const override)` with QAS_Right (PR #167191)

2025-11-08 Thread via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/167191 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 154846 (PR #167191)

2025-11-08 Thread via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/167191 >From 6fa0f51a59ca361478e199588fd2ed094aa8b90c Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 22 Aug 2025 00:22:02 -0700 Subject: [PATCH] [clang-format] Don't swap `(const override)` with QAS_Right Fixes #15

[clang] [llvm] [clang] Clang multi-match behavior of WarningSuppressionMappings (PR #162237)

2025-11-08 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/162237 >From b0aa1c4f6462bba4700a7b72804370bd9fddc453 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 7 Oct 2025 00:56:26 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20ch?= =?U

[clang] 154846 (PR #167191)

2025-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: owenca (owenca) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/167191.diff 2 Files Affected: - (modified) clang/lib/Format/QualifierAlignmentFixer.cpp (+14-5) - (modified) clang/unittests/Format/QualifierFixer

[clang] 154846 (PR #167191)

2025-11-08 Thread via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/167191 None >From 498652d239f6f29e6ebc75fb6346a5c9465e323f Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 22 Aug 2025 00:22:02 -0700 Subject: [PATCH 1/2] wip --- clang/lib/Format/QualifierAlignmentFixer.cpp | 19

[libcxxabi] [libunwind] [NFCI][test][asm] Enable AT&T syntax explicitly (PR #166818)

2025-11-08 Thread Nico Weber via cfe-commits
nico wrote: > Implementation files using the Intel syntax typically explicitly specify it. > Do the same for the few files where applicable for AT&T. > > This enables building LLVM with `-mllvm -x86-asm-syntax=intel` in one's Clang > config files (i.e. a global preference for Intel syntax). F

[clang] [LifetimeSafety] Use StringMap::contains (NFC) (PR #167186)

2025-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-temporal-safety Author: Kazu Hirata (kazutakahirata) Changes Identified with readability-container-contains. --- Full diff: https://github.com/llvm/llvm-project/pull/167186.diff 1 Files Affected: - (modified) clang/lib/Analysis/LifetimeSafety/

[clang] [LifetimeSafety] Use StringMap::contains (NFC) (PR #167186)

2025-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Identified with readability-container-contains. --- Full diff: https://github.com/llvm/llvm-project/pull/167186.diff 1 Files Affected: - (modified) clang/lib/Analysis/LifetimeSafety/Facts.cpp (+1-2)

[clang] [LifetimeSafety] Use StringMap::contains (NFC) (PR #167186)

2025-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Kazu Hirata (kazutakahirata) Changes Identified with readability-container-contains. --- Full diff: https://github.com/llvm/llvm-project/pull/167186.diff 1 Files Affected: - (modified) clang/lib/Analysis/LifetimeSafety/Facts.c

[clang] [LifetimeSafety] Use StringMap::contains (NFC) (PR #167186)

2025-11-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/167186 Identified with readability-container-contains. >From 99362ca38f4c65678dd3d574d3dd2e820019e013 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 8 Nov 2025 12:44:52 -0800 Subject: [PATCH] [LifetimeS

[clang] [CIR] Emit promise declaration in coroutine (PR #166683)

2025-11-08 Thread via cfe-commits
@@ -152,6 +152,9 @@ class CIRGenFunction : public CIRGenTypeCache { /// global initializers. mlir::Operation *curFn = nullptr; + /// Save Parameter Decl for coroutine. + llvm::SmallVector fnArgs; Andres-Salamanca wrote: I believe this is mainly a matter

[clang] [CIR] Emit promise declaration in coroutine (PR #166683)

2025-11-08 Thread via cfe-commits
@@ -149,7 +209,46 @@ CIRGenFunction::emitCoroutineBody(const CoroutineBodyStmt &s) { if (s.getReturnStmtOnAllocFailure()) cgm.errorNYI("handle coroutine return alloc failure"); - assert(!cir::MissingFeatures::generateDebugInfo()); - assert(!cir::MissingFeatures::emitB

[clang] [CIR] Emit promise declaration in coroutine (PR #166683)

2025-11-08 Thread via cfe-commits
@@ -33,6 +34,65 @@ struct clang::CIRGen::CGCoroData { CIRGenFunction::CGCoroInfo::CGCoroInfo() {} CIRGenFunction::CGCoroInfo::~CGCoroInfo() {} +namespace { +// FIXME: both GetParamRef and ParamReferenceReplacerRAII are good template +// candidates to be shared among LLVM / CIR

[clang] [CIR] Emit promise declaration in coroutine (PR #166683)

2025-11-08 Thread via cfe-commits
@@ -33,6 +34,65 @@ struct clang::CIRGen::CGCoroData { CIRGenFunction::CGCoroInfo::CGCoroInfo() {} CIRGenFunction::CGCoroInfo::~CGCoroInfo() {} +namespace { +// FIXME: both GetParamRef and ParamReferenceReplacerRAII are good template +// candidates to be shared among LLVM / CIR

[clang-tools-extra] clang tidy: add header ignore option to include duplicate files (PR #167046)

2025-11-08 Thread Lakshdeep Singh via cfe-commits
https://github.com/lakshsidhu04 updated https://github.com/llvm/llvm-project/pull/167046 >From 669a5aed36326b3439fadf55a4b0c3f5f7219dc4 Mon Sep 17 00:00:00 2001 From: lakshsidhu04 Date: Sat, 8 Nov 2025 04:35:26 +0530 Subject: [PATCH 1/3] clang tidy: add header ignore option to include duplicate

[clang-tools-extra] clang tidy: add header ignore option to include duplicate files (PR #167046)

2025-11-08 Thread Lakshdeep Singh via cfe-commits
https://github.com/lakshsidhu04 updated https://github.com/llvm/llvm-project/pull/167046 >From 669a5aed36326b3439fadf55a4b0c3f5f7219dc4 Mon Sep 17 00:00:00 2001 From: lakshsidhu04 Date: Sat, 8 Nov 2025 04:35:26 +0530 Subject: [PATCH 1/3] clang tidy: add header ignore option to include duplicate

[clang-tools-extra] [clang-tidy] Fix `readability-container-data-pointer` check (PR #165636)

2025-11-08 Thread Baranov Victor via cfe-commits
@@ -71,20 +71,20 @@ void ContainerDataPointerCheck::registerMatchers(MatchFinder *Finder) { const auto Zero = integerLiteral(equals(0)); - const auto SubscriptOperator = callee(cxxMethodDecl(hasName("operator[]"))); - - Finder->addMatcher( + const auto AddressOfMatcher

[clang] [llvm] Attempt to fix Issue 156348 (PR #167180)

2025-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: None (Red-RobinHood) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/167180.diff 2 Files Affected: - (modified) clang/lib/Headers/avx512fintrin.h (+10-10) - (modified) clang/lib/Headers/avx512fp16intrin.h (+18-1

[clang] [llvm] Attempt to fix Issue 156348 (PR #167180)

2025-11-08 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-tools-extra] clang tidy: add header ignore option to include duplicate files (PR #167046)

2025-11-08 Thread Lakshdeep Singh via cfe-commits
https://github.com/lakshsidhu04 updated https://github.com/llvm/llvm-project/pull/167046 >From 669a5aed36326b3439fadf55a4b0c3f5f7219dc4 Mon Sep 17 00:00:00 2001 From: lakshsidhu04 Date: Sat, 8 Nov 2025 04:35:26 +0530 Subject: [PATCH 1/3] clang tidy: add header ignore option to include duplicate

[clang] [llvm] Attempt to fix Issue 87497 (PR #167177)

2025-11-08 Thread via cfe-commits
https://github.com/Red-RobinHood edited https://github.com/llvm/llvm-project/pull/167177 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Issue 87497 (PR #167177)

2025-11-08 Thread via cfe-commits
https://github.com/Red-RobinHood edited https://github.com/llvm/llvm-project/pull/167177 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] clang-format reflow comments disable star: Fixes #58710 (PR #167146)

2025-11-08 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/test/Format/ReflowCommentsNoStar.cpp cl

[clang] [llvm] Issue 84797 (PR #167177)

2025-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: None (Red-RobinHood) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/167177.diff 2 Files Affected: - (modified) llvm/lib/Target/AArch64/AArch64ISelLowering.cpp (+32) - (modified) llvm/lib/Target/AArch64/AArc

  1   2   3   4   >