[clang-tools-extra] [clangd] Improve Markup Rendering (PR #140498)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd @llvm/pr-subscribers-clang-tools-extra Author: None (tcottin) Changes This is a preparation for fixing clangd/clangd#529. It changes the Markup rendering to markdown and plaintext. - Properly separate paragraphs using an empty line between - Don

[clang] [clang-tools-extra] [llvm] [clangd][WIP] Add doxygen parsing using standalone doxygen parser (PR #128591)

2025-05-18 Thread via cfe-commits
tcottin wrote: After some more discussions and suggestions in clangd/clangd#529, I made additional changes. Now I think this patch has gotten too big, so I will split this into multiple smaller patches starting with #140498 https://github.com/llvm/llvm-project/pull/128591 _

[clang] [libclang/python] Add `Cursor.from_translation_unit` (PR #140496)

2025-05-18 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll closed https://github.com/llvm/llvm-project/pull/140496 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add `Cursor.from_translation_unit` (PR #140496)

2025-05-18 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: Hmm, so the reason we have `Cursor.from_source_location` is that SourceLocation doesn't hold a reference to TU. Yeah, I guess we don't need this. https://github.com/llvm/llvm-project/pull/140496 ___ cfe-commits mailing list cfe-commits@

[clang] [clang-tools-extra] [llvm] [clangd][WIP] Add doxygen parsing using standalone doxygen parser (PR #128591)

2025-05-18 Thread via cfe-commits
https://github.com/tcottin closed https://github.com/llvm/llvm-project/pull/128591 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::is_sorted (NFC) (PR #140468)

2025-05-18 Thread Tim Gymnich via cfe-commits
https://github.com/tgymnich approved this pull request. https://github.com/llvm/llvm-project/pull/140468 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Improve Markup Rendering (PR #140498)

2025-05-18 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] [clangd] Improve Markup Rendering (PR #140498)

2025-05-18 Thread via cfe-commits
https://github.com/tcottin created https://github.com/llvm/llvm-project/pull/140498 This is a preparation for fixing clangd/clangd#529. It changes the Markup rendering to markdown and plaintext. - Properly separate paragraphs using an empty line between - Dont escape markdown syntax for markdo

[clang] [clang-format][NFC] Upgrade SortIncludes option to a struct (PR #140497)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes This allows adding other suboptions e.g. IgnoreExtension in #137840. --- Full diff: https://github.com/llvm/llvm-project/pull/140497.diff 8 Files Affected: - (modified) clang/docs/ClangFormatStyleOptions

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-05-18 Thread Jonas Hahnfeld via cfe-commits
hahnjo wrote: I'm not so sure it's about conversion function templates in particular: if it's really commit 658d55ba1117a029f37f51a3072585a1fd9fc59f causing the problem (@emaxx-google if you happen to have some time, it would be great to confirm reverting that change also avoids the issues in

[clang] [libclang/python] Add `Cursor.from_translation_unit` (PR #140496)

2025-05-18 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum approved this pull request. LGTM, but are you sure there is a need for this API? This just seems like a slighly less convenient version of `TranslationUnit.cursor`. > This should complete the list of things Cursor can be made from. There is also a `cursor` prope

[clang] [clang-format][NFC] Upgrade SortIncludes option to a struct (PR #140497)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Owen Pan (owenca) Changes This allows adding other suboptions e.g. IgnoreExtension in #137840. --- Full diff: https://github.com/llvm/llvm-project/pull/140497.diff 8 Files Affected: - (modified) clang/docs/ClangFormatStyleOptions.rst (+

[clang] [clang-format][NFC] Upgrade SortIncludes option to a struct (PR #140497)

2025-05-18 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/140497 This allows adding other suboptions e.g. IgnoreExtension in #137840. >From 186ac09017c78cbff5a34a5b8768b6df5b8d0546 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 18 May 2025 23:23:04 -0700 Subject: [PATCH]

[clang] [libclang/python] Add `Cursor.from_translation_unit` (PR #140496)

2025-05-18 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r HEAD~1...HEAD clang/bindings/python/clang/cindex.py clang/bindings/python/tests/cindex/tes

[clang] [libclang/python] Add `Cursor.from_translation_unit` (PR #140496)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes This should complete the list of things `Cursor` can be made from. --- Full diff: https://github.com/llvm/llvm-project/pull/140496.diff 3 Files Affected: - (modified) clang/bindings/python/clang/cind

[clang] [libclang/python] Add `Cursor.from_translation_unit` (PR #140496)

2025-05-18 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/140496 This should complete the list of things `Cursor` can be made from. >From 2fa8240df89d195c25da9d0ee52101830ae41677 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Mon, 19 May 2025 09:20:55 +0300 Subject:

[clang] [llvm] [CMake] Add a linker test for -Bsymbolic-functions to AddLLVM (PR #79539)

2025-05-18 Thread Fangrui Song via cfe-commits
@@ -355,6 +349,9 @@ function(add_link_opts target_name) set_property(TARGET ${target_name} APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-brtl") endif() + + check_linker_flag(CXX "-Wl,-Bsymbolic-functions" MaskRay wrote: @mati865 This might b

[clang] [CIR] Upstream support for C++ member function calls (PR #140290)

2025-05-18 Thread Sirui Mu via cfe-commits
@@ -1148,6 +1146,35 @@ mlir::Value CIRGenFunction::emitAlloca(StringRef name, mlir::Type ty, return addr; } +// Note: this function also emit constructor calls to support a MSVC extensions +// allowing explicit constructor function call. +RValue CIRGenFunction::emitCXXMembe

[clang] [clang][Driver][test][NFC] Adjust test for targets with no cc1as (PR #140490)

2025-05-18 Thread Hubert Tong via cfe-commits
hubert-reinterpretcast wrote: This PR addresses the failure seen in https://lab.llvm.org/buildbot/#/builders/64/builds/3661/steps/6/logs/FAIL__Clang__no-integrated-cpp_c. https://github.com/llvm/llvm-project/pull/140490 ___ cfe-commits mailing list cf

[clang] [flang] [flang][Driver] Support -nodefaultlibs, -nostartfiles and -nostdlib (PR #72601)

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

[clang] [llvm] [CMake] Add a linker test for -Bsymbolic-functions to AddLLVM (PR #79539)

2025-05-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu-no-asserts` running on `doug-worker-6` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/202/builds

[clang] [CIR] Upstream support for C++ member function calls (PR #140290)

2025-05-18 Thread Sirui Mu via cfe-commits
https://github.com/Lancern edited https://github.com/llvm/llvm-project/pull/140290 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for C++ member function calls (PR #140290)

2025-05-18 Thread Sirui Mu via cfe-commits
https://github.com/Lancern approved this pull request. https://github.com/llvm/llvm-project/pull/140290 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for C++ member function calls (PR #140290)

2025-05-18 Thread Sirui Mu via cfe-commits
https://github.com/Lancern approved this pull request. https://github.com/llvm/llvm-project/pull/140290 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver][test][NFC] Adjust test for targets with no cc1as (PR #140490)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Hubert Tong (hubert-reinterpretcast) Changes Have the test accept use of the toolchain assembler instead of `-cc1as` as some targets, such as AIX, do not use `-cc1as`. --- Full diff: https://github.com/ll

[clang] [clang][Driver][test][NFC] Adjust test for targets with no cc1as (PR #140490)

2025-05-18 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast created https://github.com/llvm/llvm-project/pull/140490 Have the test accept use of the toolchain assembler instead of `-cc1as` as some targets, such as AIX, do not use `-cc1as`. >From c10943474ca69b70464a99c877c6ef862f705a91 Mon Sep 17 00:00:00 2001

[clang-tools-extra] [clang-tidy] Add support for lambda-expression in `use-trailing-return-type` check (PR #135383)

2025-05-18 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/135383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add support for lambda-expression in `use-trailing-return-type` check (PR #135383)

2025-05-18 Thread Congcong Cai via cfe-commits
@@ -56,6 +60,13 @@ class UseTrailingReturnTypeCheck : public ClangTidyCheck { SourceRange ReturnTypeCVRange, const FunctionDecl &F, const FriendDecl *Fr, const ASTContext &Ctx, const SourceManager &SM, const Lang

[clang-tools-extra] [clang-tidy] Add support for lambda-expression in `use-trailing-return-type` check (PR #135383)

2025-05-18 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/135383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CMake] Add a linker test for -Bsymbolic-functions to AddLLVM (PR #79539)

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

[clang] fbb8a0c - [CMake] Add a linker test for -Bsymbolic-functions to AddLLVM (#79539)

2025-05-18 Thread via cfe-commits
Author: Brad Smith Date: 2025-05-18T21:20:32-04:00 New Revision: fbb8a0c9c8a0725b60d84333dd0c4af706b15bed URL: https://github.com/llvm/llvm-project/commit/fbb8a0c9c8a0725b60d84333dd0c4af706b15bed DIFF: https://github.com/llvm/llvm-project/commit/fbb8a0c9c8a0725b60d84333dd0c4af706b15bed.diff LO

[clang] [llvm] [CMake] Add a linker test for -Bsymbolic-functions to AddLLVM (PR #79539)

2025-05-18 Thread via cfe-commits
https://github.com/jeremyd2019 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/79539 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fixed issue #128882: don't warn if 1st argument to 'getcwd' is NULL (PR #135720)

2025-05-18 Thread Sean McBride via cfe-commits
@@ -105,9 +105,6 @@ void errno_getcwd(char *Buf, size_t Sz) { clang_analyzer_eval(errno != 0); // expected-warning{{TRUE}} clang_analyzer_eval(Path == NULL); // expected-warning{{TRUE}} if (errno) {} // no warning - } else if (Path == NULL) {

[clang] [CodeGen] Add TBAA struct path info for array members (PR #137719)

2025-05-18 Thread Bruno De Fraine via cfe-commits
brunodf-snps wrote: > I'm surprised we need all this. Since we don't distinguish arrays from their > elements in TBAA, is it not sufficient to just make sure that array subscript > expressions produce an l-value with the same TBAA metadata as their base > l-value? The code is written after [t

[clang] [CodeGen] Add TBAA struct path info for array members (PR #137719)

2025-05-18 Thread Bruno De Fraine via cfe-commits
https://github.com/brunodf-snps updated https://github.com/llvm/llvm-project/pull/137719 >From d63c8fe4fcc8e89933bf3c1cc176941b0b9094fa Mon Sep 17 00:00:00 2001 From: Bruno De Fraine Date: Mon, 28 Apr 2025 14:12:00 +0200 Subject: [PATCH 1/3] [clang][CodeGen] Make tbaa-array test more robust Av

[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)

2025-05-18 Thread via cfe-commits
sivadeilra wrote: @aganea , I've encountered one problem with this PR. The pass which creates the `__ref_*` variables needs to run before `CodeViewDebug::collectGlobalVariableInfo`, but the way we did this in this PR breaks several other integration tests. From looking at the sequence of pa

[clang] [clang] Use *Map::try_emplace (NFC) (PR #140477)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes We can simplify the code with *Map::try_emplace where we need default-constructed values while avoding calling constructors when keys are already present. --- Full diff: https://github.com/llvm/llvm-pr

[clang] [clang] Use *Map::try_emplace (NFC) (PR #140477)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Kazu Hirata (kazutakahirata) Changes We can simplify the code with *Map::try_emplace where we need default-constructed values while avoding calling constructors when keys are already present. --- Full diff: https://github.com/llvm

[clang] [clang] Use *Map::try_emplace (NFC) (PR #140477)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140477 We can simplify the code with *Map::try_emplace where we need default-constructed values while avoding calling constructors when keys are already present. >From c3a085a286f1e876a721f6299622a681905013ed M

[clang] [CIR][LLVMLowering] Upstream binary operators for VectorType (PR #140099)

2025-05-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/140099 >From ab09038c757369b0ecc6c968bb50debdc024b1ce Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Wed, 14 May 2025 22:25:09 +0200 Subject: [PATCH 1/3] [CIR][LLVMLowering] Upstream binary operators for Vecto

[clang] [clang][AArch64] Move initialization of ptrauth-* function attrs (PR #140277)

2025-05-18 Thread Daniel Kiss via cfe-commits
https://github.com/DanielKristofKiss approved this pull request. https://github.com/llvm/llvm-project/pull/140277 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::is_sorted (NFC) (PR #140468)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140468.diff 2 Files Affected: - (modified) clang/lib/APINotes/APINotesReader.cpp (+2-2) - (modified) clang/lib/AST/Type.cpp (+1-1) ``

[clang] [clang] Use llvm::is_sorted (NFC) (PR #140468)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140468 None >From 4d09559c9f7e87718ca48ac35a2d178c58000b23 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 18 May 2025 10:44:18 -0700 Subject: [PATCH] [clang] Use llvm::is_sorted (NFC) --- clang/lib/API

[clang-tools-extra] [clangd] Add tweak to override pure virtuals (PR #139348)

2025-05-18 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > If you're looking for a clangd reviewer, perhaps one of our other clangd > maintainers, @llvm-beanz or @kadircet, could help with this one. (I realized you are probably not able to edit the Reviewers field, so I went ahead and added the mentioned folks.) https://github

[clang] [CIR][LLVMLowering] Upstream binary operators for VectorType (PR #140099)

2025-05-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/140099 >From ab09038c757369b0ecc6c968bb50debdc024b1ce Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Wed, 14 May 2025 22:25:09 +0200 Subject: [PATCH 1/3] [CIR][LLVMLowering] Upstream binary operators for Vecto

[clang] [CIR][LLVMLowering] Upstream unary operators for VectorType (PR #139444)

2025-05-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/139444 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 61ba3e4 - [CIR][LLVMLowering] Upstream unary operators for VectorType (#139444)

2025-05-18 Thread via cfe-commits
Author: Amr Hesham Date: 2025-05-18T18:53:17+02:00 New Revision: 61ba3e4c99a0f806a798fba398e82a4969054bc1 URL: https://github.com/llvm/llvm-project/commit/61ba3e4c99a0f806a798fba398e82a4969054bc1 DIFF: https://github.com/llvm/llvm-project/commit/61ba3e4c99a0f806a798fba398e82a4969054bc1.diff LO

[clang] e003326 - [Sema] Use llvm::is_contained (NFC) (#140455)

2025-05-18 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-18T09:45:48-07:00 New Revision: e003326cd8e474f1c5be030f63c975b354c3f784 URL: https://github.com/llvm/llvm-project/commit/e003326cd8e474f1c5be030f63c975b354c3f784 DIFF: https://github.com/llvm/llvm-project/commit/e003326cd8e474f1c5be030f63c975b354c3f784.diff L

[clang] [clang] Use llvm::unique (NFC) (PR #140459)

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

[clang] 0fc9cd1 - [clang] Use llvm::unique (NFC) (#140459)

2025-05-18 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-18T09:47:06-07:00 New Revision: 0fc9cd13a6e3e3707794f4e016b15831d5f0b334 URL: https://github.com/llvm/llvm-project/commit/0fc9cd13a6e3e3707794f4e016b15831d5f0b334 DIFF: https://github.com/llvm/llvm-project/commit/0fc9cd13a6e3e3707794f4e016b15831d5f0b334.diff L

[clang-tools-extra] 9384e8e - [clang-tools-extra] Use llvm::max_element (NFC) (#140458)

2025-05-18 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-18T09:46:39-07:00 New Revision: 9384e8e63c2e51a5dfac1c53d07442bb0c8d8773 URL: https://github.com/llvm/llvm-project/commit/9384e8e63c2e51a5dfac1c53d07442bb0c8d8773 DIFF: https://github.com/llvm/llvm-project/commit/9384e8e63c2e51a5dfac1c53d07442bb0c8d8773.diff L

[clang-tools-extra] [clang-tools-extra] Use llvm::max_element (NFC) (PR #140458)

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

[clang-tools-extra] 04c73ad - [clang-tools-extra] Use llvm::is_contained (NFC) (#140456)

2025-05-18 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-18T09:46:15-07:00 New Revision: 04c73adfe2ed3597e10859c753b0dbdfd7e5f210 URL: https://github.com/llvm/llvm-project/commit/04c73adfe2ed3597e10859c753b0dbdfd7e5f210 DIFF: https://github.com/llvm/llvm-project/commit/04c73adfe2ed3597e10859c753b0dbdfd7e5f210.diff L

[clang-tools-extra] [clang-tools-extra] Use llvm::is_contained (NFC) (PR #140456)

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

[clang] [Sema] Use llvm::is_contained (NFC) (PR #140455)

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

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,50 @@ +//===--- AvoidPragmaOnceCheck.cpp - clang-tidy ===// +// +// 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: Apa

[clang] [Sema] Use llvm::is_contained (NFC) (PR #140455)

2025-05-18 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/140455 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Use llvm::is_contained (NFC) (PR #140455)

2025-05-18 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/140455 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Use llvm::is_contained (NFC) (PR #140456)

2025-05-18 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/140456 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Use llvm::is_contained (NFC) (PR #140456)

2025-05-18 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/140456 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::unique (NFC) (PR #140459)

2025-05-18 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/140459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Use llvm::max_element (NFC) (PR #140458)

2025-05-18 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/140458 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Use llvm::max_element (NFC) (PR #140458)

2025-05-18 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/140458 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::unique (NFC) (PR #140459)

2025-05-18 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/140459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Piotr Zegar via cfe-commits
@@ -3,10 +3,22 @@ portability-avoid-pragma-once = -This check catches pragma once usage. +Finds uses of ``#pragma once`` and suggests replacing them with standard +include guards (``#ifndef``/``#define``/``#endif``) for improved portability. -For

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Piotr Zegar via cfe-commits
@@ -3,10 +3,22 @@ portability-avoid-pragma-once = -This check catches pragma once usage. +Finds uses of ``#pragma once`` and suggests replacing them with standard +include guards (``#ifndef``/``#define``/``#endif``) for improved portability. -For

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. Documentation may require some improvements, but overall looks fine. https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,36 @@ +//===--- AvoidPragmaOnceCheck.h - clang-tidy *- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,50 @@ +//===--- AvoidPragmaOnceCheck.cpp - clang-tidy ===// +// +// 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: Apa

[clang-tools-extra] [clang-tools-extra] Use llvm::max_element (NFC) (PR #140458)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140458.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/misc/ConfusableTable/BuildConfusableTable.cpp (+3-5) - (modif

[clang] [CIR] Remove the empty verifier in cir.ifOp (PR #140457)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: None (Andres-Salamanca) Changes The empty verifier is redundant because cir::IfOp has no constraints to enforce its verify() always succeeds. --- Full diff: https://github.com/llvm/llvm-project/pull/140457.diff 2 Files Affected: - (m

[clang] [clang] Use llvm::unique (NFC) (PR #140459)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140459 None >From f8c8c98d787da0ee539b6dca695406004a7c4f10 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 18 May 2025 07:46:08 -0700 Subject: [PATCH] [clang] Use llvm::unique (NFC) --- clang/include/cl

[clang] [CIR] Remove the empty verifier in cir.ifOp (PR #140457)

2025-05-18 Thread via cfe-commits
Andres-Salamanca wrote: @andykaylor https://github.com/llvm/llvm-project/pull/140457 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Tommy Chen via cfe-commits
https://github.com/dl8sd11 updated https://github.com/llvm/llvm-project/pull/140388 >From 5bc074dadddb094bf954388a95ecb818abe17b56 Mon Sep 17 00:00:00 2001 From: dl8sd11 Date: Sat, 17 May 2025 17:23:26 + Subject: [PATCH 1/6] [clang-tidy] Add avoid-pragma-once. --- .../portability/AvoidPra

[clang] [Sema] Use llvm::is_contained (NFC) (PR #140455)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140455.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaChecking.cpp (+1-3) ``diff diff --git a/clang/lib/Sema/SemaChecking.

[clang] [clang] Use llvm::unique (NFC) (PR #140459)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140459.diff 4 Files Affected: - (modified) clang/include/clang/Serialization/ContinuousRangeMap.h (+2-2) - (modified) clang/lib/Form

[clang] [CIR] Remove the empty verifier in cir.ifOp (PR #140457)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Andres-Salamanca) Changes The empty verifier is redundant because cir::IfOp has no constraints to enforce its verify() always succeeds. --- Full diff: https://github.com/llvm/llvm-project/pull/140457.diff 2 Files Affected: - (mod

[clang-tools-extra] [clang-tools-extra] Use llvm::max_element (NFC) (PR #140458)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140458 None >From 7b986a3a76948eea96280bf7e48e4ecfc24e8da4 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 18 May 2025 07:51:16 -0700 Subject: [PATCH] [clang-tools-extra] Use llvm::max_element (NFC) ---

[clang] [CIR] Remove the empty verifier in cir.ifOp (PR #140457)

2025-05-18 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/140457 The empty verifier is redundant because cir::IfOp has no constraints to enforce its verify() always succeeds. >From f482141df1f2174bdd9a23ddc20bb9530830071d Mon Sep 17 00:00:00 2001 From: Andres Salama

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread via cfe-commits
@@ -0,0 +1,24 @@ +.. title:: clang-tidy - portability-avoid-pragma-once + +portability-avoid-pragma-once += + +Finds uses of ``#pragma once`` and suggests replacing them with standard +include guards (``#ifndef``/``#define``/``#endif``) for improved por

[clang-tools-extra] [clang-tools-extra] Use llvm::is_contained (NFC) (PR #140456)

2025-05-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140456.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/bugprone/NarrowingConversionsCheck.cpp (+1-1) - (modified) clang-t

[clang-tools-extra] [clang-tools-extra] Use llvm::is_contained (NFC) (PR #140456)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140456 None >From b1642c07d474b0f7b14515a339e646c0e86ba9ae Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 18 May 2025 08:11:43 -0700 Subject: [PATCH] [clang-tools-extra] Use llvm::is_contained (NFC) ---

[clang] [Sema] Use llvm::is_contained (NFC) (PR #140455)

2025-05-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/140455 None >From 0b097045043c8a1f0815ac364395c5f0f9445b92 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 18 May 2025 07:48:25 -0700 Subject: [PATCH] [Sema] Use llvm::is_contained (NFC) --- clang/lib/S

[clang] [CodeGen] Use DenseMap::try_emplace (NFC) (PR #140430)

2025-05-18 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/140430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Tommy Chen via cfe-commits
@@ -0,0 +1,50 @@ +//===--- AvoidPragmaOnceCheck.cpp - clang-tidy ===// +// +// 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: Apa

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Tommy Chen via cfe-commits
https://github.com/dl8sd11 updated https://github.com/llvm/llvm-project/pull/140388 >From 5bc074dadddb094bf954388a95ecb818abe17b56 Mon Sep 17 00:00:00 2001 From: dl8sd11 Date: Sat, 17 May 2025 17:23:26 + Subject: [PATCH 1/7] [clang-tidy] Add avoid-pragma-once. --- .../portability/AvoidPra

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,50 @@ +//===--- AvoidPragmaOnceCheck.cpp - clang-tidy ===// +// +// 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: Apa

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,24 @@ +.. title:: clang-tidy - portability-avoid-pragma-once + +portability-avoid-pragma-once += + +Finds uses of ``#pragma once`` and suggests replacing them with standard +include guards (``#ifndef``/``#define``/``#endif``) for improved por

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,50 @@ +//===--- AvoidPragmaOnceCheck.cpp - clang-tidy ===// +// +// 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: Apa

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,24 @@ +.. title:: clang-tidy - portability-avoid-pragma-once + +portability-avoid-pragma-once += + +Finds uses of ``#pragma once`` and suggests replacing them with standard +include guards (``#ifndef``/``#define``/``#endif``) for improved por

[clang] [Clang][NFC] Use `llvm::sort()` (PR #140337)

2025-05-18 Thread Iris Shi via cfe-commits
https://github.com/el-ev updated https://github.com/llvm/llvm-project/pull/140337 >From 935633e4e6b290bbf7f83a559a3cd36c049186c7 Mon Sep 17 00:00:00 2001 From: Iris Shi <0...@owo.li> Date: Sat, 17 May 2025 10:46:46 +0800 Subject: [PATCH] [Clang][NFC] Use `llvm::sort()` --- clang/lib/APINotes/A

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor commented: Some more nit changes. If you will to contribute further, reading https://clang.llvm.org/extra/clang-tidy/Contributing.html may help you. Particularly "Making your check robust" and "Documenting your check". Although, most of it already covered in comments

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-18 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,24 @@ +.. title:: clang-tidy - portability-avoid-pragma-once + +portability-avoid-pragma-once += + +Finds uses of ``#pragma once`` and suggests replacing them with standard +include guards (``#ifndef``/``#define``/``#endif``) for improved por

[clang] 013c7ba - [CodeGen] Use DenseMap::try_emplace (NFC) (#140430)

2025-05-18 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-18T07:33:02-07:00 New Revision: 013c7ba78590badf20d769a2de13bddabcfb1c5d URL: https://github.com/llvm/llvm-project/commit/013c7ba78590badf20d769a2de13bddabcfb1c5d DIFF: https://github.com/llvm/llvm-project/commit/013c7ba78590badf20d769a2de13bddabcfb1c5d.diff L

[clang] 159f05f - [AST] Remove "const" from "const ArrayRef" (NFC) (#140437)

2025-05-18 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-18T07:34:45-07:00 New Revision: 159f05fcaf9888ceaa70d0a6e78e1da30d418de7 URL: https://github.com/llvm/llvm-project/commit/159f05fcaf9888ceaa70d0a6e78e1da30d418de7 DIFF: https://github.com/llvm/llvm-project/commit/159f05fcaf9888ceaa70d0a6e78e1da30d418de7.diff L

  1   2   >