[clang] [clang] fix P3310 overload resolution flag propagation (PR #125372)

2025-02-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes Class templates might be only instantiated when they are required to be complete, but checking the template args against the primary template is immediate. This result is cached so that later when the c

[clang] [clang] fix P3310 overload resolution flag propagation (PR #125372)

2025-02-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Matheus Izvekov (mizvekov) Changes Class templates might be only instantiated when they are required to be complete, but checking the template args against the primary template is immediate. This result is cached so that later wh

[clang] Reapply "[analyzer] Handle [[assume(cond)]] as __builtin_assume(cond)" (PR #125348)

2025-02-01 Thread Vinay Deshmukh via cfe-commits
vinay-deshmukh wrote: @steakhal You can use: `vinay_deshmukh` AT `outlook` DOT `com` Thank you for looking into the issue again! https://github.com/llvm/llvm-project/pull/125348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125379)

2025-02-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/125379 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast This patch migrat

[clang] [Lex] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125380)

2025-02-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/125380 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast This patch migrat

[clang] [Lex] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125380)

2025-02-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast This p

[clang] [libclang] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125381)

2025-02-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Litera

[clang] [libclang] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125381)

2025-02-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/125381 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Literal migration

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125379)

2025-02-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast This p

[clang] [AArch64] Enable vscale_range with +sme (PR #124466)

2025-02-01 Thread David Green via cfe-commits
davemgreen wrote: /cherry-pick 9f1c825fb62319b94ac9604f733afd59e9eb461b https://github.com/llvm/llvm-project/pull/124466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Enable vscale_range with +sme (PR #124466)

2025-02-01 Thread David Green via cfe-commits
https://github.com/davemgreen milestoned https://github.com/llvm/llvm-project/pull/124466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Enable vscale_range with +sme (PR #124466)

2025-02-01 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#125386 https://github.com/llvm/llvm-project/pull/124466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e11e65f - [CodeGen] Migrate away from PointerUnion::dyn_cast (NFC) (#125336)

2025-02-01 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-02-01T08:13:41-08:00 New Revision: e11e65f08b00a96916ce5ec21bf31d061158829d URL: https://github.com/llvm/llvm-project/commit/e11e65f08b00a96916ce5ec21bf31d061158829d DIFF: https://github.com/llvm/llvm-project/commit/e11e65f08b00a96916ce5ec21bf31d061158829d.diff L

[clang] [CodeGen] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125336)

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

[clang] b798679 - test: correct a typo in the check identifier (NFCI)

2025-02-01 Thread Saleem Abdulrasool via cfe-commits
Author: Saleem Abdulrasool Date: 2025-02-01T14:49:29-08:00 New Revision: b798679c076af4acaa806e893b038372f5954298 URL: https://github.com/llvm/llvm-project/commit/b798679c076af4acaa806e893b038372f5954298 DIFF: https://github.com/llvm/llvm-project/commit/b798679c076af4acaa806e893b038372f5954298.

[clang] Reapply "[analyzer] Handle [[assume(cond)]] as __builtin_assume(cond)" (PR #125348)

2025-02-01 Thread Balazs Benics via cfe-commits
steakhal wrote: @vinay-deshmukh What email should I use for attribution in the "Co-authored-by"? https://github.com/llvm/llvm-project/pull/125348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] Reapply "[analyzer] Handle [[assume(cond)]] as __builtin_assume(cond)" (PR #125348)

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

[clang] Reapply "[analyzer] Handle [[assume(cond)]] as __builtin_assume(cond)" (PR #125348)

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

[clang] Reapply "[clang][bytecode] Stack-allocate bottom function frame" (#12… (PR #125349)

2025-02-01 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/125349 …5325) Move the BottomFrame to InterpState instead. >From 1f491bfbf6dd0bf81c7d531920276c5f6ac2c04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 1 Feb 2025 06:55:55 +0100 Subject: [P

[clang] [clang module] Current Working Directory Pruning (PR #124786)

2025-02-01 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/124786 >From 7060564de1bb6062639f4b4839fa17958f212755 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Mon, 27 Jan 2025 16:44:30 -0800 Subject: [PATCH 1/4] Initial implementation of clang modules current working dire

[clang] Patch series to reapply #118734 and substantially improve it (PR #120534)

2025-02-01 Thread via cfe-commits
Andarwinux wrote: https://github.com/llvm/llvm-project/pull/125367 RC1 coming soon https://github.com/llvm/llvm-project/pull/120534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Hanlde qualified type name for `QualifierAlignment` (PR #125327)

2025-02-01 Thread Owen Pan via cfe-commits
owenca wrote: Same reason we almost never handle them, just like we (almost?) never handle the possibility of templated qualified names of arbitrary nesting levels (e.g. `A1::A2 … An`) and of comments before _every_ token. We can always tweak the code if and when we need to handle these rare c

[clang] 657dc6d - [AST] Migrate away from PointerUnion::dyn_cast (NFC) (#125335)

2025-02-01 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-02-01T08:13:20-08:00 New Revision: 657dc6d05e8e20d5c3b41161ace7fba5d2cb6e26 URL: https://github.com/llvm/llvm-project/commit/657dc6d05e8e20d5c3b41161ace7fba5d2cb6e26 DIFF: https://github.com/llvm/llvm-project/commit/657dc6d05e8e20d5c3b41161ace7fba5d2cb6e26.diff L

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125335)

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

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125335)

2025-02-01 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > Feel free to batch some of these changes together in a single PR! Thanks! It's becoming harder to find occurrences where I can migrate `PU.dyn_cast` to `dyn_cast(PU)` (not to be confused with `dyn_cast_if_present(PU)`) because I have to convince myself that `PU` is ne

[clang] Reapply "[clang][bytecode] Stack-allocate bottom function frame" (#12… (PR #125349)

2025-02-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes …5325) Move the BottomFrame to InterpState instead. --- Full diff: https://github.com/llvm/llvm-project/pull/125349.diff 7 Files Affected: - (modified) clang/lib/AST/ByteCode/Context.cpp (+1-4) - (modifi

[clang] Reapply "[analyzer] Handle [[assume(cond)]] as __builtin_assume(cond)" (PR #125348)

2025-02-01 Thread Balazs Benics via cfe-commits
https://github.com/steakhal created https://github.com/llvm/llvm-project/pull/125348 This is the second attempt to bring initial support for [[assume()]] in the Clang Static Analyzer. The first attempt (#116462) was reverted in 2b9abf0db2d106c7208b4372e662ef5df869e6f1 due to some weird failure

[clang] Reapply "[analyzer] Handle [[assume(cond)]] as __builtin_assume(cond)" (PR #125348)

2025-02-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balazs Benics (steakhal) Changes This is the second attempt to bring initial support for [[assume()]] in the Clang Static Analyzer. The first attempt (#116462) was reverted in 2b9abf0db2d106c7208b4372e662ef5df869e6f1 due

[clang] Reapply "[analyzer] Handle [[assume(cond)]] as __builtin_assume(cond)" (PR #125348)

2025-02-01 Thread Balazs Benics via cfe-commits
steakhal wrote: @Xazax-hun Please have a thorough review of this one. https://github.com/llvm/llvm-project/pull/125348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] allow restrict qualifier for array types with pointer types as element types (PR #120896)

2025-02-01 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/120896 >From 295df258043ef5a87ae603eedd308b863bad7b59 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 22 Dec 2024 15:14:30 +0200 Subject: [PATCH 1/3] [Clang] allow restrict qualifier for array types with poin

[clang] [Sema] Add code completion for if constexpr (PR #124315)

2025-02-01 Thread Sirui Mu via cfe-commits
https://github.com/Lancern requested changes to this pull request. Thanks for working on this! Please add a test for your patch. You can take tests under `clang/test/CodeCompletion` for reference. https://github.com/llvm/llvm-project/pull/124315 ___ c

[clang] Reland: [clang] Track function template instantiation from definition (PR #125266)

2025-02-01 Thread via cfe-commits
@@ -2298,6 +2298,13 @@ class FunctionDecl : public DeclaratorDecl, FunctionDeclBits.IsLateTemplateParsed = ILT; } + bool isInstantiatedFromMemberTemplate() const { +return FunctionDeclBits.IsInstantiatedFromMemberTemplate; + } + void setInstantiatedFromMemberTempl

[clang] Reland: [clang] Track function template instantiation from definition (PR #125266)

2025-02-01 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/125266 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Hanlde qualified type name for `QualifierAlignment` (PR #125327)

2025-02-01 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: > > Seems to also work for top-level types (`::int_64_t constexpr x{123};` > > works correctly) but breaks for fully qualified types (`::std::int64_t > > constexpr x{123};` becomes `::constexpr std::int64_t x{123};`) > > Yeah, I intentionally didn't want to use a loop

[clang] [clang-format] Add null-terminated path option (#123921) (PR #123926)

2025-02-01 Thread Nikolaos Chatzikonstantinou via cfe-commits
createyourpersonalaccount wrote: @owenca @mydeveloperday @HazardyKnusperkeks I'll ping now that it's the weekend, perhaps you have some time to look at this more; in particular now I got the `--null` option to work for `--staged`, but I'm not sure how you'd like it to work for other options. I

[clang] 06130ed - Reapply "[clang][bytecode] Stack-allocate bottom function frame" (#12… (#125349)

2025-02-01 Thread via cfe-commits
Author: Timm Baeder Date: 2025-02-01T18:12:35+01:00 New Revision: 06130ed341ddbf697045731300651fbbcb63f0ff URL: https://github.com/llvm/llvm-project/commit/06130ed341ddbf697045731300651fbbcb63f0ff DIFF: https://github.com/llvm/llvm-project/commit/06130ed341ddbf697045731300651fbbcb63f0ff.diff L

[clang] [clang-format] Fix a bug in annotating ClassHeadName (PR #125326)

2025-02-01 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/125326 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reapply "[clang][bytecode] Stack-allocate bottom function frame" (#12… (PR #125349)

2025-02-01 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/125349 ___ 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 readability-string-view-substr check (PR #120055)

2025-02-01 Thread Helmut Januschka via cfe-commits
hjanuschka wrote: @5chmidti may i ping you? could you help me out, it feels like its only inches away from being done. or could we go with the prev. commit as mentioned above? https://github.com/llvm/llvm-project/pull/120055 ___ cfe-commits mailing li

[clang] [experimental] Detect return-stack-addr using CFG (PR #124133)

2025-02-01 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/124133 >From 22990789b61e9f9d22e88a6b008eb3166fd1cb56 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 23 Jan 2025 15:47:39 + Subject: [PATCH 1/3] [experimental] Detect return-stack-addr using CFG --- .../A

[clang] [experimental] Detect return-stack-addr using CFG (PR #124133)

2025-02-01 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/124133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Force AttributedStmtClass to not be scope parents (PR #125370)

2025-02-01 Thread Yutong Zhu via cfe-commits
https://github.com/YutongZhuu created https://github.com/llvm/llvm-project/pull/125370 This PR addresses https://github.com/llvm/llvm-project/issues/84072. >From 01497e746ae23ea5033b1c6cd6f9f9718d6dc3d6 Mon Sep 17 00:00:00 2001 From: Yutong Zhu Date: Sat, 1 Feb 2025 20:09:13 -0500 Subject: [PA

[clang] [clang] Force AttributedStmtClass to not be scope parents (PR #125370)

2025-02-01 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] Force AttributedStmtClass to not be scope parents (PR #125370)

2025-02-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yutong Zhu (YutongZhuu) Changes This PR addresses https://github.com/llvm/llvm-project/issues/84072. --- Full diff: https://github.com/llvm/llvm-project/pull/125370.diff 1 Files Affected: - (modified) clang/lib/Sema/JumpDiagnostics.cpp

[clang] Reland: [clang] Track function template instantiation from definition (PR #125266)

2025-02-01 Thread Matheus Izvekov via cfe-commits
@@ -2298,6 +2298,13 @@ class FunctionDecl : public DeclaratorDecl, FunctionDeclBits.IsLateTemplateParsed = ILT; } + bool isInstantiatedFromMemberTemplate() const { +return FunctionDeclBits.IsInstantiatedFromMemberTemplate; + } + void setInstantiatedFromMemberTempl

[clang] 6980d97 - [clang-format] Fix a bug in annotating ClassHeadName (#125326)

2025-02-01 Thread via cfe-commits
Author: Owen Pan Date: 2025-02-01T20:20:43-08:00 New Revision: 6980d9794684908fa1835b87b560d20e5f295a73 URL: https://github.com/llvm/llvm-project/commit/6980d9794684908fa1835b87b560d20e5f295a73 DIFF: https://github.com/llvm/llvm-project/commit/6980d9794684908fa1835b87b560d20e5f295a73.diff LOG:

[clang] [clang-format] Fix a bug in annotating ClassHeadName (PR #125326)

2025-02-01 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/125326 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix P3310 overload resolution flag propagation (PR #125372)

2025-02-01 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/125372 Class templates might be only instantiated when they are required to be complete, but checking the template args against the primary template is immediate. This result is cached so that later when the class i

[clang] [clang] fix P3310 overload resolution flag propagation (PR #125372)

2025-02-01 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/125372 >From 9645f14d3b9aa016cb45ca27ad0425adbbc0e1c6 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Fri, 31 Jan 2025 20:41:39 -0300 Subject: [PATCH] [clang] fix P3310 overload resolution flag propagation Class

[clang] CodeGen: support static linking for libclosure (PR #125384)

2025-02-01 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd created https://github.com/llvm/llvm-project/pull/125384 When building on Windows, dealing with the BlocksRuntime is slightly more complicated. As we are not guaranteed a formward declaration for the blocks runtime ABI symbols, we may generate the declarations for t

[clang] Reland: [clang] Track function template instantiation from definition (PR #125266)

2025-02-01 Thread via cfe-commits
@@ -2298,6 +2298,13 @@ class FunctionDecl : public DeclaratorDecl, FunctionDeclBits.IsLateTemplateParsed = ILT; } + bool isInstantiatedFromMemberTemplate() const { +return FunctionDeclBits.IsInstantiatedFromMemberTemplate; + } + void setInstantiatedFromMemberTempl

[clang] CodeGen: support static linking for libclosure (PR #125384)

2025-02-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Saleem Abdulrasool (compnerd) Changes When building on Windows, dealing with the BlocksRuntime is slightly more complicated. As we are not guaranteed a formward declaration for the blocks runtime ABI symbols, we may generate the de

[clang] [clang] fix P3310 overload resolution flag propagation (PR #125372)

2025-02-01 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/125372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix P3310 overload resolution flag propagation (PR #125372)

2025-02-01 Thread via cfe-commits
@@ -1841,15 +1841,21 @@ class ClassTemplateSpecializationDecl : public CXXRecordDecl, LLVM_PREFERRED_TYPE(TemplateSpecializationKind) unsigned SpecializationKind : 3; + /// When matching the primary template, have we matched any packs on the + /// parameter side, versus

[clang] [clang] fix P3310 overload resolution flag propagation (PR #125372)

2025-02-01 Thread via cfe-commits
@@ -1841,15 +1841,21 @@ class ClassTemplateSpecializationDecl : public CXXRecordDecl, LLVM_PREFERRED_TYPE(TemplateSpecializationKind) unsigned SpecializationKind : 3; + /// When matching the primary template, have we matched any packs on the + /// parameter side, versus

[clang] [clang] fix P3310 overload resolution flag propagation (PR #125372)

2025-02-01 Thread via cfe-commits
@@ -2525,8 +2525,11 @@ void TextNodeDumper::VisitCXXRecordDecl(const CXXRecordDecl *D) { OS << " instantiated_from"; dumpPointer(Instance); } - if (const auto *CTSD = dyn_cast(D)) + if (const auto *CTSD = dyn_cast(D)) { dumpTemplateSpecializationKind(CTSD->get

[clang] [clang] fix P3310 overload resolution flag propagation (PR #125372)

2025-02-01 Thread via cfe-commits
https://github.com/cor3ntin commented: Thanks for fixing that quickly. LGTM, just a few nits/comments. (I assume that we will want to cherry-pick that to 20) https://github.com/llvm/llvm-project/pull/125372 ___ cfe-commits mailing list cfe-commits@li

[clang] [clang][StaticAnalyzer][NFC] Fix a typo in comments (PR #125339)

2025-02-01 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/125339 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][StaticAnalyzer][NFC] Fix a typo in comments (PR #125339)

2025-02-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ben Shi (benshi001) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/125339.diff 1 Files Affected: - (modified) clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h (+2-2) ``di

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125335)

2025-02-01 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/125335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125336)

2025-02-01 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/125336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][StaticAnalyzer][NFC] Fix a typo in comments (PR #125339)

2025-02-01 Thread Ben Shi via cfe-commits
https://github.com/benshi001 created https://github.com/llvm/llvm-project/pull/125339 None >From 1cfa014550c0a1c2a8bb22587afdc8b211481f95 Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Sat, 1 Feb 2025 16:16:29 +0800 Subject: [PATCH] [clang][StaticAnalyzer][NFC] Fix a typo in comments --- .../c

[clang] 44aa618 - [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (#117437)

2025-02-01 Thread via cfe-commits
Author: yronglin Date: 2025-02-01T16:58:05+08:00 New Revision: 44aa618ef67d302f5ab77cc591fb3434fe967a2e URL: https://github.com/llvm/llvm-project/commit/44aa618ef67d302f5ab77cc591fb3434fe967a2e DIFF: https://github.com/llvm/llvm-project/commit/44aa618ef67d302f5ab77cc591fb3434fe967a2e.diff LOG:

[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #117437)

2025-02-01 Thread via cfe-commits
https://github.com/yronglin closed https://github.com/llvm/llvm-project/pull/117437 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #125335)

2025-02-01 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Feel free to batch some of these changes together in a single PR! https://github.com/llvm/llvm-project/pull/125335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] bfa7edc - [clang][StaticAnalyzer][NFC] Fix a typo in comments (#125339)

2025-02-01 Thread via cfe-commits
Author: Ben Shi Date: 2025-02-01T09:21:47+01:00 New Revision: bfa7edcc6652bdb37d53e0cec64926aab3f280eb URL: https://github.com/llvm/llvm-project/commit/bfa7edcc6652bdb37d53e0cec64926aab3f280eb DIFF: https://github.com/llvm/llvm-project/commit/bfa7edcc6652bdb37d53e0cec64926aab3f280eb.diff LOG:

[clang] [clang][StaticAnalyzer][NFC] Fix a typo in comments (PR #125339)

2025-02-01 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/125339 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7612dcc - [clang] NFC, add a "continue" bailout in the for-loop of

2025-02-01 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2025-02-01T10:07:40+01:00 New Revision: 7612dcc6e8d8e7f19b364084effbb01946294720 URL: https://github.com/llvm/llvm-project/commit/7612dcc6e8d8e7f19b364084effbb01946294720 DIFF: https://github.com/llvm/llvm-project/commit/7612dcc6e8d8e7f19b364084effbb01946294720.diff LO

[clang] [llvm] [ValueTracking] Handle flipped strictness cases in `matchSelectPattern` (PR #121958)

2025-02-01 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/121958 >From c67349c8d79333d574a753d7afb10489cafb008d Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Tue, 7 Jan 2025 23:48:53 +0800 Subject: [PATCH 1/4] [InstCombine] Add pre-commit tests. NFC. --- llvm/test/Tran

[clang] [llvm] [mlir] [clang][CodeGen][AA] Add `!llvm.errno.tbaa` gathering int-compatible TBAA nodes (PR #125258)

2025-02-01 Thread Nikita Popov via cfe-commits
nikic wrote: > so IIUC !llvm.errno.tbaa should just be a module-level list of int-compatible > TBAA nodes. Yes, exactly. It should be a module level MD node, not on individual instructions. https://github.com/llvm/llvm-project/pull/125258 ___ cfe-co

[clang] [ExtractAPI,test] fix filecheck annotation (PR #92231)

2025-02-01 Thread via cfe-commits
https://github.com/klensy updated https://github.com/llvm/llvm-project/pull/92231 >From 6f904e5a6ea450f651fa6a1a6d8a57d63a7c07cb Mon Sep 17 00:00:00 2001 From: klensy Date: Wed, 15 May 2024 12:14:56 +0300 Subject: [PATCH] [ExtractAPI,test] fix filecheck annotation --- clang/test/ExtractAPI/av

[clang] [clang][Sema] Emit warnings on incorrect AVR interrupt/signal handlers (PR #125328)

2025-02-01 Thread Patryk Wychowaniec via cfe-commits
https://github.com/Patryk27 approved this pull request. https://github.com/llvm/llvm-project/pull/125328 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ExtractAPI,test] fix filecheck annotation (PR #92231)

2025-02-01 Thread via cfe-commits
klensy wrote: Reviewed and ready to merge, please, commit someone. https://github.com/llvm/llvm-project/pull/92231 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits