[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

2025-12-15 Thread via cfe-commits
@@ -720,18 +720,41 @@ bool SimplifyBooleanExprCheck::issueDiag(const ASTContext &Context, void SimplifyBooleanExprCheck::replaceWithThenStatement( const ASTContext &Context, const IfStmt *IfStatement, const Expr *BoolLiteral) { + std::string Replacement = getText(Cont

[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 requested changes to this pull request. https://github.com/llvm/llvm-project/pull/172220 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

2025-12-15 Thread via cfe-commits
@@ -720,18 +720,41 @@ bool SimplifyBooleanExprCheck::issueDiag(const ASTContext &Context, void SimplifyBooleanExprCheck::replaceWithThenStatement( const ASTContext &Context, const IfStmt *IfStatement, const Expr *BoolLiteral) { + std::string Replacement = getText(Cont

[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

2025-12-15 Thread via cfe-commits
@@ -1035,3 +1035,36 @@ void instantiate() { ignoreInstantiations(); ignoreInstantiations(); } + +void test_init_stmt_true() { + void foo(int i); + if (int i = 0; true) +foo(i); + // CHECK-MESSAGES: :[[@LINE-2]]:18: warning: redundant boolean literal in if statement

[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

2025-12-15 Thread via cfe-commits
@@ -720,18 +720,41 @@ bool SimplifyBooleanExprCheck::issueDiag(const ASTContext &Context, void SimplifyBooleanExprCheck::replaceWithThenStatement( const ASTContext &Context, const IfStmt *IfStatement, const Expr *BoolLiteral) { + std::string Replacement = getText(Cont

[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

2025-12-15 Thread via cfe-commits
@@ -720,18 +720,41 @@ bool SimplifyBooleanExprCheck::issueDiag(const ASTContext &Context, void SimplifyBooleanExprCheck::replaceWithThenStatement( const ASTContext &Context, const IfStmt *IfStatement, const Expr *BoolLiteral) { + std::string Replacement = getText(Cont

[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

2025-12-15 Thread via cfe-commits
@@ -1035,3 +1035,19 @@ void instantiate() { ignoreInstantiations(); ignoreInstantiations(); } + +void if_with_init_statement() { + bool x = true; + if (bool y = x; y == true) { +// CHECK-MESSAGES: :[[@LINE-1]]:24: warning: redundant boolean literal supplied to boolea

[clang-tools-extra] [clang-tidy][NFC] Use structured binding in `ClangTidyModule.cpp` (PR #172432)

2025-12-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Victor Chernyakin (localspook) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/172432.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/ClangTidyModule.cpp (+6-7) ``diff diff --git

[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

2025-12-15 Thread via cfe-commits
@@ -1035,3 +1035,19 @@ void instantiate() { ignoreInstantiations(); ignoreInstantiations(); } + +void if_with_init_statement() { + bool x = true; + if (bool y = x; y == true) { +// CHECK-MESSAGES: :[[@LINE-1]]:24: warning: redundant boolean literal supplied to boolea

[clang-tools-extra] [clang-tidy][NFC] Use structured binding in `ClangTidyModule.cpp` (PR #172432)

2025-12-15 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/172432 None >From e69c7b7d3f2df293691150a777984477839a6b9b Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Mon, 15 Dec 2025 23:51:03 -0800 Subject: [PATCH] [clang-tidy][NFC] Use structured binding in `Clang

[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

2025-12-15 Thread via cfe-commits
https://github.com/Anshul200677 updated https://github.com/llvm/llvm-project/pull/172220 >From 867eaf36cddcfcf4f04c31cc3e887ee178833c5d Mon Sep 17 00:00:00 2001 From: Anshul200677 Date: Mon, 15 Dec 2025 00:17:32 +0530 Subject: [PATCH 01/11] [clang-tidy] Fix readability-simplify-boolean-expr for

[clang] [Clang] Fix crash on malformed std::partial_ordering static members (PR #172001)

2025-12-15 Thread via cfe-commits
https://github.com/code-pankaj updated https://github.com/llvm/llvm-project/pull/172001 >From e627d929cb8bc01dad82610219fbb362635b6f00 Mon Sep 17 00:00:00 2001 From: code-pankaj Date: Fri, 12 Dec 2025 18:02:34 +0530 Subject: [PATCH 1/5] [Clang] Fix crash on malformed std::partial_ordering stat

[clang] [Serialization] Stop demote var definition as declaration (PR #172430)

2025-12-15 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 cppm,cpp -- clang/test/Modules/pr172241.cppm clang/lib/

[clang] [Serialization] Stop demote var definition as declaration (PR #172430)

2025-12-15 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/172430 >From 4eb4dcbb848523ffc323fcf9a6b2bbce4036232f Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Tue, 16 Dec 2025 14:12:41 +0800 Subject: [PATCH 1/2] Stop demote var definition as declaration --- clang/lib/Se

[clang] [Serialization] Stop demote var definition as declaration (PR #172430)

2025-12-15 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results The build failed before running any tests. Click on a failure below to see the details. tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/ASTReaderDecl.cpp.o ``` FAILED: tools/clang/lib/Serialization/CMakeFiles

[clang] 1928c1e - [C++20][Modules] Improve namespace look-up performance for modules. (#171769)

2025-12-15 Thread via cfe-commits
Author: Michael Park Date: 2025-12-15T23:33:22-08:00 New Revision: 1928c1ea9b57e9c44325d436bc7bb2f4585031f3 URL: https://github.com/llvm/llvm-project/commit/1928c1ea9b57e9c44325d436bc7bb2f4585031f3 DIFF: https://github.com/llvm/llvm-project/commit/1928c1ea9b57e9c44325d436bc7bb2f4585031f3.diff

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-15 Thread Michael Park via cfe-commits
https://github.com/mpark closed https://github.com/llvm/llvm-project/pull/171769 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap allocate it (PR #164212)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 approved this pull request. https://github.com/llvm/llvm-project/pull/164212 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang][FIR] Introduce FIRToCoreMLIR pass. (PR #168703)

2025-12-15 Thread Ming Yan via cfe-commits
NexMing wrote: Hi @jeanPerier > While I agree that leveraging the existing memref infra makes sense, and as > @rscottmanley mentioned, we are actually also working on enabling converting > part of FIR to MLIR memref/scf, I think the more generic MLIR optimizations > passes are the one that a

[clang] [Serialization] Stop demote var definition as declaration (PR #172430)

2025-12-15 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/172430 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Stop demote var definition as declaration (PR #172430)

2025-12-15 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/172430 Close https://github.com/llvm/llvm-project/issues/172241 This was meant to be a fix. Just during my debugging, I want to see the effect/reason/motivation of the action, then I simply remove the loop to demot

[clang] [Serialization] Stop demote var definition as declaration (PR #172430)

2025-12-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes Close https://github.com/llvm/llvm-project/issues/172241 This was meant to be a fix. Just during my debugging, I want to see the effect/reason/motivation of the action, then I simply remove the loop

[clang] [llvm] [Clang][OpenMP] Handle check for non-contiguous mapping in pointer-based array sections (PR #157443)

2025-12-15 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 updated https://github.com/llvm/llvm-project/pull/157443 >From 1e0f4ff5e8e2aa7c3f1928850a89768564c6b342 Mon Sep 17 00:00:00 2001 From: amtiwari Date: Mon, 8 Sep 2025 08:23:21 -0400 Subject: [PATCH 1/6] handle_array_pointer_var_check --- clang/lib/CodeGen/CGOpenMPRu

[clang-tools-extra] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap allocate it (PR #164212)

2025-12-15 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/164212 >From ff973c87c98d04cb861cf78584367b05fcde750a Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Mon, 20 Oct 2025 00:27:59 -0700 Subject: [PATCH] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap

[clang-tools-extra] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap allocate it (PR #164212)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 commented: In `ClangTidyDiagnosticConsumer.cpp`: ```diff - ExperimentalCustomChecks(ExperimentalCustomChecks) { + ExperimentalCustomChecks(ExperimentalCustomChecks), + CheckFilter(""), WarningAsErrorFilter("") { ``` https://github.com/llvm/llvm-project/pul

[clang-tools-extra] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap allocate it (PR #164212)

2025-12-15 Thread via cfe-commits
github-actions[bot] wrote: # :window: Windows x64 Test Results The build failed before running any tests. Click on a failure below to see the details. [code=1] tools/clang/tools/extra/clang-tidy/CMakeFiles/obj.clangTidy.dir/ClangTidyDiagnosticConsumer.cpp.obj ``` FAILED: [code=1] tools/cl

[clang-tools-extra] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap allocate it (PR #164212)

2025-12-15 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results The build failed before running any tests. Click on a failure below to see the details. tools/clang/tools/extra/clang-tidy/CMakeFiles/obj.clangTidy.dir/ClangTidyDiagnosticConsumer.cpp.o ``` FAILED: tools/clang/tools/extra/clang-

[clang-tools-extra] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap allocate it (PR #164212)

2025-12-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Victor Chernyakin (localspook) Changes `GlobList` is a polymorphic class, but we don't use it polymorphically anywhere, so we seem to be paying that cost unnecessarily. --- Full diff: https://github.com/llvm/llvm-project/pull/

[clang-tools-extra] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap allocate it (PR #164212)

2025-12-15 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code linter, clang-tidy found issues in your code. :warning: You can test this locally with the following command: ```bash git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tools-extra/clang-

[clang-tools-extra] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap allocate it (PR #164212)

2025-12-15 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook ready_for_review https://github.com/llvm/llvm-project/pull/164212 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap allocate it (PR #164212)

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

[clang] [llvm] [Clang][OpenMP] Handle check for non-contiguous mapping in pointer-based array sections (PR #157443)

2025-12-15 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 updated https://github.com/llvm/llvm-project/pull/157443 >From 1e0f4ff5e8e2aa7c3f1928850a89768564c6b342 Mon Sep 17 00:00:00 2001 From: amtiwari Date: Mon, 8 Sep 2025 08:23:21 -0400 Subject: [PATCH 1/5] handle_array_pointer_var_check --- clang/lib/CodeGen/CGOpenMPRu

[clang-tools-extra] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap allocate it (PR #164212)

2025-12-15 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/164212 >From e9df93b50adb54cae3345411ff92274075031eb8 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Mon, 20 Oct 2025 00:27:59 -0700 Subject: [PATCH] [clang-tidy][NFC] Devirtualize `GlobList` and don't heap

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

2025-12-15 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook closed 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] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-15 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/171769 >From 70dcddc371b055ad005019e4c0081f2bff4f4ec7 Mon Sep 17 00:00:00 2001 From: Michael Park Date: Mon, 15 Dec 2025 21:18:02 -0800 Subject: [PATCH 1/3] [C++20][Modules] Add a test for namespace lookup optimization.

[clang] [llvm] [Clang][OpenMP] Handle check for non-contiguous mapping in pointer-based array sections (PR #157443)

2025-12-15 Thread via cfe-commits
github-actions[bot] wrote: # :window: Windows x64 Test Results * 2995 tests passed * 30 tests skipped All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details. [code=1] tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGOpenMPR

[clang] [llvm] [Clang][OpenMP] Handle check for non-contiguous mapping in pointer-based array sections (PR #157443)

2025-12-15 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 3057 tests passed * 7 tests skipped All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details. tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGOpenMPRuntime.cpp.o

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-15 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/unittests/Serialization/NamespaceLookupTes

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-15 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/171769 >From 1ddc0fe26c4ba83ef8b825d481f4104270490fa2 Mon Sep 17 00:00:00 2001 From: Michael Park Date: Mon, 15 Dec 2025 21:18:02 -0800 Subject: [PATCH 1/3] [C++20][Modules] Add a test for namespace lookup optimization.

[clang] [ObjCDirectPreconditionThunk] Adding a flag to with objc_direct symbols' prefix (PR #170616)

2025-12-15 Thread Peter Rong via cfe-commits
DataCorrupted wrote: Currently the flag is default false and needs explicit opt in. I have added the comment in the code. If we can agree on a release model, I'll update this PR/RFC as well. Here's my proposal: - For now, I think a safe plan would be to keep it default false; - Switch to defau

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-15 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/171769 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-15 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/unittests/Serialization/NamespaceLookupTes

[clang] [llvm] [Clang][OpenMP] Handle check for non-contiguous mapping in pointer-based array sections (PR #157443)

2025-12-15 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 updated https://github.com/llvm/llvm-project/pull/157443 >From f394b935494d2f9614ff821f6e5fc0fb7fdd2361 Mon Sep 17 00:00:00 2001 From: amtiwari Date: Mon, 8 Sep 2025 08:23:21 -0400 Subject: [PATCH 1/5] handle_array_pointer_var_check --- clang/lib/CodeGen/CGOpenMPRu

[clang] [C++20][Modules] Improve namespace look-up performance for modules. (PR #171769)

2025-12-15 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/171769 >From 6d0d09aa3ab792d0f3ed35b395480f21b36a3b01 Mon Sep 17 00:00:00 2001 From: Michael Park Date: Mon, 15 Dec 2025 21:18:02 -0800 Subject: [PATCH 1/3] [C++20][Modules] Add a test for namespace lookup optimization.

[clang] [clang-tools-extra] [llvm] clangd: Extend reference search with constructor calls through forwarding (PR #169742)

2025-12-15 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > Now about the implementation, I did it this way thinking it is the least > invasive form of doing so, but I just realized it might also be a neat > alternative to instead inherit from `IndexASTConsumer` (so make it not > `final` and expose it through the header), then I

[clang] [llvm] [Clang][OpenMP] Handle check for non-contiguous mapping in pointer-based array sections (PR #157443)

2025-12-15 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 updated https://github.com/llvm/llvm-project/pull/157443 >From f394b935494d2f9614ff821f6e5fc0fb7fdd2361 Mon Sep 17 00:00:00 2001 From: amtiwari Date: Mon, 8 Sep 2025 08:23:21 -0400 Subject: [PATCH 1/5] handle_array_pointer_var_check --- clang/lib/CodeGen/CGOpenMPRu

[clang] [ObjCDirectPreconditionThunk] Adding a flag to with objc_direct symbols' prefix (PR #170616)

2025-12-15 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/170616 >From 76489044b1150f846af5fe86f07d8d8f32e56179 Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:18:02 -0800 Subject: [PATCH 1/5] [ExposeObjCDirect] Adding a flag to allow new objc direct

[clang-tools-extra] [clang-tidy] Fix parentheses handling in `readability-math-missing-parentheses` (PR #172423)

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

[clang] [llvm] [Clang] Fix cleanup attribute by delaying type checks after the type is deduced (PR #164440)

2025-12-15 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Was this PR expected to change behaviour? after it ```objective-c static inline void cleanup_test(void (^*f)(void)) { (*f)(); } void f() { __attribute__((unused)) __attribute__((cleanup(cleanup_test))) void (^thing)(void) = \ ^() {}; } ``` Now fails w

[clang-tools-extra] [clang-tidy] Fix parentheses handling in `readability-math-missing-parentheses` (PR #172423)

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

[clang-tools-extra] [clang-tidy] Fix parentheses handling in `readability-math-missing-parentheses` (PR #172423)

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

[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

2025-12-15 Thread via cfe-commits
@@ -1,19 +0,0 @@ -// RUN: clang-tidy %s -checks='-*,readability-simplify-boolean-expr' -- -std=c++17 | count 0 -struct RAII {}; -bool foo(bool Cond) { - bool Result; - - if (RAII Object; Cond) -Result = true; - else -Result = false; - - if (bool X = Cond; X) -Resu

[clang-tools-extra] [clang-tidy] Fix parentheses handling in `readability-math-missing-parentheses` (PR #172423)

2025-12-15 Thread via cfe-commits
@@ -48,11 +48,17 @@ static int getPrecedence(const BinaryOperator *BinOp) { return 0; } } -static void addParentheses(const BinaryOperator *BinOp, - const BinaryOperator *ParentBinOp, +static void addParentheses(const Expr *E, const BinaryOperato

[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

2025-12-15 Thread via cfe-commits
https://github.com/Anshul200677 updated https://github.com/llvm/llvm-project/pull/172220 >From 867eaf36cddcfcf4f04c31cc3e887ee178833c5d Mon Sep 17 00:00:00 2001 From: Anshul200677 Date: Mon, 15 Dec 2025 00:17:32 +0530 Subject: [PATCH 01/10] [clang-tidy] Fix readability-simplify-boolean-expr for

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-15 Thread Priyanshu Kumar via cfe-commits
https://github.com/Priyanshu3820 updated https://github.com/llvm/llvm-project/pull/171615 >From 286dba2d5a5ca74c84c4e221192bf51cc6a731a3 Mon Sep 17 00:00:00 2001 From: Priyanshu Kumar <[email protected]> Date: Fri, 12 Dec 2025 10:57:40 + Subject: [PATCH 01/15] Resolve conflict --- cl

[clang-tools-extra] [clang-tidy] Fix parentheses handling in `readability-math-missing-parentheses` (PR #172423)

2025-12-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: mitchell (zeyi2) Changes Previously, the check would stop AST traversal when encountering a `ParenExpr`. This PR fixes this problem Closes #172269 --- Full diff: https://github.com/llvm/llvm-project/pull/172423.diff 3 Files Affect

[clang-tools-extra] [clang-tidy] Fix parentheses handling in `readability-math-missing-parentheses` (PR #172423)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 created https://github.com/llvm/llvm-project/pull/172423 Previously, the check would stop AST traversal when encountering a `ParenExpr`. This PR fixes this problem Closes #172269 >From f8ebfa8ae26ad14f5fb40ac0efd5588242f900d5 Mon Sep 17 00:00:00 2001 From: mtx Date:

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-15 Thread via cfe-commits
https://github.com/MarwanTarik edited https://github.com/llvm/llvm-project/pull/171694 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-15 Thread via cfe-commits
https://github.com/MarwanTarik updated https://github.com/llvm/llvm-project/pull/171694 >From 82529b8bfd35c9e8059b49e2f17b3c837232cf09 Mon Sep 17 00:00:00 2001 From: MarwanTarik Date: Wed, 10 Dec 2025 22:21:55 +0200 Subject: [PATCH 1/9] Upstream CIR Codgen for convert to mask X86 builtins ---

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-15 Thread Priyanshu Kumar via cfe-commits
https://github.com/Priyanshu3820 updated https://github.com/llvm/llvm-project/pull/171615 >From 286dba2d5a5ca74c84c4e221192bf51cc6a731a3 Mon Sep 17 00:00:00 2001 From: Priyanshu Kumar <[email protected]> Date: Fri, 12 Dec 2025 10:57:40 + Subject: [PATCH 01/14] Resolve conflict --- cl

[clang] [X86][Clang] Allow SSE/AVX COMI/UCOMI/CMPS/CMPP fp comparison intrinsics to be used in constexpr (PR #160876)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 closed https://github.com/llvm/llvm-project/pull/160876 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-15 Thread via cfe-commits
@@ -289,8 +291,61 @@ def _clean_clang_tidy_output(self, output: str) -> str: return "" +class Doc8LintHelper(LintHelper): +name: Final = "doc8" +friendly_name: Final = "RST documentation linter" -ALL_LINTERS = (ClangTidyLintHelper(),) +def instructions(s

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/28] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

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

[clang] [Clang]Check for a valid Index in array before getting it (PR #172399)

2025-12-15 Thread Balaji V. Iyer. via cfe-commits
https://github.com/bviyer edited https://github.com/llvm/llvm-project/pull/172399 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/27] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-15 Thread via cfe-commits
@@ -768,3 +768,42 @@ unsigned char test_ktestz_mask64_u8(__mmask64 A, __mmask64 B) { return _ktestz_mask64_u8(A, B); } + + +__m512i test_mm512_movm_epi16(__mmask32 __A) { + // CIR-LABEL: _mm512_movm_epi16 + // CIR: %{{.*}} = cir.cast bitcast %{{.*}} : !u32i -> !cir.vecto

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

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

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-15 Thread via cfe-commits
@@ -289,8 +291,61 @@ def _clean_clang_tidy_output(self, output: str) -> str: return "" +class Doc8LintHelper(LintHelper): +name: Final = "doc8" +friendly_name: Final = "RST documentation linter" -ALL_LINTERS = (ClangTidyLintHelper(),) +def instructions(s

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/26] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

[clang] [clang][bytecode] Use record layout in `Pointer::computeOffsetForComparison()` (PR #172322)

2025-12-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/172322 >From 7a41d561c04dc9475d189b34ebc86c8a3aebec0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 15 Dec 2025 16:18:21 +0100 Subject: [PATCH] ptr compare --- clang/lib/AST/ByteCode/Interp

[clang] [llvm] [Clang][OpenMP] Handle check for non-contiguous mapping in pointer-based array sections (PR #157443)

2025-12-15 Thread Saiyedul Islam via cfe-commits
saiislam wrote: @amitamd7 Can you please fix the merge conflict so that I submit this PR? https://github.com/llvm/llvm-project/pull/157443 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [clang][bytecode] Fix InterpFrame::dump() (PR #170682)

2025-12-15 Thread Timm Baeder via cfe-commits
tbaederr wrote: No. As always, dump() is just internal debugging code and gets no tests. https://github.com/llvm/llvm-project/pull/170682 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-15 Thread via cfe-commits
https://github.com/MarwanTarik updated https://github.com/llvm/llvm-project/pull/171694 >From 82529b8bfd35c9e8059b49e2f17b3c837232cf09 Mon Sep 17 00:00:00 2001 From: MarwanTarik Date: Wed, 10 Dec 2025 22:21:55 +0200 Subject: [PATCH 1/6] Upstream CIR Codgen for convert to mask X86 builtins ---

[clang-tools-extra] [clang-tidy] Add options to throw unannotated functions in `bugprone-exception-escape` (PR #168324)

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

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-15 Thread Priyanshu Kumar via cfe-commits
@@ -1693,7 +1712,43 @@ CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, const CallExpr *expr) { case X86::BI__builtin_ia32_vcvtph2ps512_mask: case X86::BI__builtin_ia32_cvtneps2bf16_128_mask: case X86::BI__builtin_ia32_cvtneps2bf16_256_mask: - case X86::BI__builti

[clang] [clang-format] Align different categories together (PR #172242)

2025-12-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `reverse-iteration` running on `hexagon-build-03` while building `clang` at step 6 "check_all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/110/builds/6820 Here is the relevant piece of the build l

[clang] [CIR][X86] Implement convert_half builtins (PR #171615)

2025-12-15 Thread Priyanshu Kumar via cfe-commits
https://github.com/Priyanshu3820 updated https://github.com/llvm/llvm-project/pull/171615 >From 286dba2d5a5ca74c84c4e221192bf51cc6a731a3 Mon Sep 17 00:00:00 2001 From: Priyanshu Kumar <[email protected]> Date: Fri, 12 Dec 2025 10:57:40 + Subject: [PATCH 01/13] Resolve conflict --- cl

[clang] Implement select/selectsh builtins in CIR (PR #172299)

2025-12-15 Thread Priyanshu Kumar via cfe-commits
https://github.com/Priyanshu3820 deleted https://github.com/llvm/llvm-project/pull/172299 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement select/selectsh builtins in CIR (PR #172299)

2025-12-15 Thread Priyanshu Kumar via cfe-commits
@@ -0,0 +1,292 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-feature +avx512bw -target-feature +avx512vl -fclangir -emit-cir %s -o - | FileCheck %s --check-prefix=CIR +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-feature +avx512bw -target-featur

[clang] Implement select/selectsh builtins in CIR (PR #172299)

2025-12-15 Thread Priyanshu Kumar via cfe-commits
@@ -1334,10 +1353,14 @@ CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, const CallExpr *expr) { case X86::BI__builtin_ia32_selectpd_128: case X86::BI__builtin_ia32_selectpd_256: case X86::BI__builtin_ia32_selectpd_512: +return emitX86VectorSelect(builder, getL

[clang] Implement select/selectsh builtins in CIR (PR #172299)

2025-12-15 Thread Priyanshu Kumar via cfe-commits
@@ -417,8 +417,26 @@ static mlir::Value emitX86vpcom(CIRGenBuilderTy &builder, mlir::Location loc, return builder.createVecCompare(loc, pred, op0, op1); } -std::optional -CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, const CallExpr *expr) { +static mlir::Value emit

[clang] [clang-tools-extra] [Clang] Add support for the C `defer` TS (PR #162848)

2025-12-15 Thread Dwayne Robinson via cfe-commits
fdwr wrote: Cool, `_Defer` works nicely in Godbolt clang trunk (https://godbolt.org/z/zfTjPK66o), except `#include ` fails even with `-std=c2y -fdefer-ts` 🤔. I'll try it again next week in case Godbolt's version is not new enough yet. Thank you for implementing this Sirraide 🙌. https://githu

[clang-tools-extra] [clang-tidy][NFC] Add `doc8` documentations (PR #167269)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/167269 >From 85c41652d2256af9861d66598c991430cf70979a Mon Sep 17 00:00:00 2001 From: mtx Date: Mon, 10 Nov 2025 13:29:27 +0800 Subject: [PATCH 1/8] [clang-tidy][NFC] Add `.editorconfig` for `.rst` files --- clang-tools

[clang] [HLSL][Matrix] Add OR and AND logical operator support for matrix (PR #172384)

2025-12-15 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/172384 >From 17795dbd62f641cb7c217367f8cf2ee531a39ddc Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Mon, 15 Dec 2025 18:51:15 -0500 Subject: [PATCH 1/2] [HLSL][Matrix] Add OR and AND logical operator support for m

[clang] [clang] [Serialization] Introduce noload_redecls (PR #170823)

2025-12-15 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: Oh, thank you. Maybe the patch has problems already, I'll take a look later. https://github.com/llvm/llvm-project/pull/170823 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang-tools-extra] [clang-tidy][NFC] Add `doc8` documentations (PR #167269)

2025-12-15 Thread via cfe-commits
@@ -451,6 +451,17 @@ your build tree. Make sure that your check is correctly shown in the release no list of checks. Make sure that the formatting and structure of your check's documentation look correct. +Clang-tidy uses `doc8 `_ to check `

[clang-tools-extra] [clang-tidy][NFC] Add `doc8` documentations (PR #167269)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/167269 >From 85c41652d2256af9861d66598c991430cf70979a Mon Sep 17 00:00:00 2001 From: mtx Date: Mon, 10 Nov 2025 13:29:27 +0800 Subject: [PATCH 1/7] [clang-tidy][NFC] Add `.editorconfig` for `.rst` files --- clang-tools

[clang] [clang] Propagate definition data to all redecls (PR #170090)

2025-12-15 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: BTW, given https://github.com/llvm/llvm-project/pull/170823 will have problems, it implies the patch can work since it introduce redeclarations for the case. https://github.com/llvm/llvm-project/pull/170090 ___ cfe-commits mailing li

[clang-tools-extra] [clang-tidy][NFC] Add `doc8` documentations (PR #167269)

2025-12-15 Thread via cfe-commits
https://github.com/EugeneZelenko deleted https://github.com/llvm/llvm-project/pull/167269 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [Serialization] Introduce noload_redecls (PR #170823)

2025-12-15 Thread Alexander Kornienko via cfe-commits
alexfh wrote: The infinite loop seems to be happening in this code: ``` * thread #1, name = 'clang-debug', stop reason = step over frame #0: 0x67ade9c8 clang-debug`clang::ASTDeclMerger::MergeDefinitionData(this=0x7ffe0320, D=0x30c271c7e908, MergeDD=0x30c271c801f0) at

[clang-tools-extra] [clang-tidy][NFC] Add `doc8` documentations (PR #167269)

2025-12-15 Thread via cfe-commits
@@ -0,0 +1,5 @@ +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true EugeneZelenko wrote: I would add `trim_trailing_whitespace` and `indent_style` too, since both settings are applicable to other files. https://github.com/llvm/llvm-project/pull

[clang-tools-extra] [clang-tidy][NFC] Add `doc8` documentations (PR #167269)

2025-12-15 Thread via cfe-commits
@@ -451,6 +451,17 @@ your build tree. Make sure that your check is correctly shown in the release no list of checks. Make sure that the formatting and structure of your check's documentation look correct. +Clang-tidy uses `doc8 `_ to check `

[clang] [clang] [Serialization] Introduce noload_redecls (PR #170823)

2025-12-15 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: @alexfh if it is the case, it implies that https://github.com/llvm/llvm-project/pull/170090#issuecomment-3657001828 can solve the problem for you (I remember the conclusion is the reproducer will fail on trunk before) because it loads redeclarations I think you don't need t

[clang-tools-extra] [clang-tidy][NFC] Add `doc8` documentations (PR #167269)

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

[clang-tools-extra] [clang-tidy][NFC] Add `doc8` documentations (PR #167269)

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

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-15 Thread via cfe-commits
zeyi2 wrote: > can we add here > https://clang.llvm.org/extra/clang-tidy/Contributing.html#documenting-your-check > a couple of lines about doc linting with `doc8`. It may require a lot of formatting that should not be a part of this PR. I'm planning to add it in #167269 then fix all the docu

[clang-tools-extra] [clang-tidy][NFC] Add `.editorconfig` for `.rst` files (PR #167269)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/167269 >From 85c41652d2256af9861d66598c991430cf70979a Mon Sep 17 00:00:00 2001 From: mtx Date: Mon, 10 Nov 2025 13:29:27 +0800 Subject: [PATCH 1/6] [clang-tidy][NFC] Add `.editorconfig` for `.rst` files --- clang-tools

[clang] [flang] [flang] Support -funsafe-cray-pointers (PR #172252)

2025-12-15 Thread Slava Zakharin via cfe-commits
https://github.com/vzakhari approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/172252 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [Github][CI] Introduce `doc8` to `code-lint-helper.py` (PR #172123)

2025-12-15 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/172123 >From 4b0b1ee150ea820f00564667e734ddd225665d53 Mon Sep 17 00:00:00 2001 From: mtx Date: Fri, 12 Dec 2025 22:39:40 +0800 Subject: [PATCH 01/25] [Github][CI] Introduce `doc8` to `code-lint-helper.py` --- .../githu

  1   2   3   4   5   6   7   >