[clang-tools-extra] [clang-tidy] Proofread Contributing.rst (PR #149831)

2025-07-21 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > > > I'm not sure on the false positive > > > > > > It's an adjective in this case: false-positive **rate**, so I believe it's > > correct, even though English is not my native language. ChatGPT also claims > > it's correct > > Adjective seems legit, but e.g. > [Wikip

[clang-tools-extra] [clang-tidy] Proofread Contributing.rst (PR #149831)

2025-07-21 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/149831 None >From 47082aa41dd5c3f17f313766951bd7d826715bae Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 21 Jul 2025 07:53:52 -0700 Subject: [PATCH] [clang-tidy] Proofread Contributing.rst --- .../doc

[clang] [clang] Proofread UsersManual.rst (NFC) (PR #149763)

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

[clang] [clang] Proofread UsersManual.rst (NFC) (PR #149763)

2025-07-20 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/149763 None >From 29aa8417ca73e877e8e21d89c7ea0e5f1c2c1313 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 20 Jul 2025 21:49:27 -0700 Subject: [PATCH] [clang] Proofread UsersManual.rst (NFC) --- clang/d

[clang] [clang] Proofread LanguageExtensions.rst (PR #149729)

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

[clang] [clang] Proofread LanguageExtensions.rst (PR #149729)

2025-07-20 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/149729 None >From 11e6bf6f0962300440aa4c463480678f4619d21b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 20 Jul 2025 11:31:41 -0700 Subject: [PATCH] [clang] Proofread LanguageExtensions.rst --- clang/

[clang] [AST] Remove an unnecessary cast (NFC) (PR #149338)

2025-07-17 Thread Kazu Hirata via cfe-commits
@@ -610,7 +610,7 @@ void StmtPrinter::VisitObjCAtTryStmt(ObjCAtTryStmt *Node) { } } - if (auto *FS = static_cast(Node->getFinallyStmt())) { + if (auto *FS = Node->getFinallyStmt()) { kazutakahirata wrote: Fixed in the latest revision. Thanks! https:

[clang] [AST] Remove an unnecessary cast (NFC) (PR #149338)

2025-07-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/149338 >From eebc7c508a56b53f651523b3199e8f6c765eb808 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 17 Jul 2025 08:07:26 -0700 Subject: [PATCH 1/2] [AST] Remove an unnecessary cast (NFC) getFinallyStmt(

[clang] [Sema] Remove unnecessary casts (NFC) (PR #149340)

2025-07-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/149340 getArrayIndex(), getArrayRangeStart(), and getArrayRangeEnd() already return Expr *. >From 945f52459c36663ac5c267779ae8e260dd9f9066 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 17 Jul 2025 08:1

[clang] [CodeGen] Remove an unnecessary cast (NFC) (PR #149339)

2025-07-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/149339 getExceptionMode() already returns LangOptions::FPExceptionModeKind. >From 3d531ee0626a226ff3db60c8bf04a447cea6727e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 17 Jul 2025 08:10:15 -0700 Subje

[clang] [AST] Remove an unnecessary cast (NFC) (PR #149338)

2025-07-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/149338 getFinallyStmt() already returns ObjCAtFinallyStmt *. >From eebc7c508a56b53f651523b3199e8f6c765eb808 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 17 Jul 2025 08:07:26 -0700 Subject: [PATCH] [AS

[clang] [Sema] Use llvm::all_of (NFC) (PR #149256)

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

[clang] [Sema] Remove unnecessary casts (NFC) (PR #149253)

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

[clang] [Sema] Remove unnecessary casts (NFC) (PR #149253)

2025-07-16 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/149253 getParam already returns NamedDecl *. >From 2f93bbada1bdc3980948fc6e147542af5e937400 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 15 Jul 2025 09:12:18 -0700 Subject: [PATCH] [Sema] Remove unnec

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148871)

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

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148871)

2025-07-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/148871 getArgAsExpr already returns Expr *. >From 2462f593876d1b306d56341581602b16e5649218 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 15 Jul 2025 08:17:35 -0700 Subject: [PATCH] [Sema] Remove unnece

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148762)

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

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148762)

2025-07-14 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/148762 getAsmLabel() already returns Expr *. >From d39e906124798e0cc790f5ef1aed131247341b4f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 13 Jul 2025 13:26:35 -0700 Subject: [PATCH] [Sema] Remove unnec

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #148531)

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

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #148531)

2025-07-13 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/148531 Dtor is already of CXXDestructorDecl *. >From eb40382c6e61acfb95afcf72a968dea1f4629b2a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 12 Jul 2025 16:05:38 -0700 Subject: [PATCH] [Sema] Remove an

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148338)

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

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148338)

2025-07-11 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/148338 NumElts, a member variable of ArrayTypeInfo, is already of Expr *. >From 77284e1f4832ed648fce11ea3cb877369efcf20e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 11 Jul 2025 11:20:17 -0700 Subject

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #147546)

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

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #147546)

2025-07-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/147546 D is already of CXXMethodDecl *. >From fac2b8100d07fa36191caf3643218ff95adc5e9a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 8 Jul 2025 07:18:59 -0700 Subject: [PATCH] [Sema] Remove an unnecess

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #147203)

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

[clang] [Serialization] Remove an unnecessary cast (NFC) (PR #147204)

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

[clang] [Serialization] Remove an unnecessary cast (NFC) (PR #147204)

2025-07-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata edited https://github.com/llvm/llvm-project/pull/147204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Remove an unnecessarycast (NFC) (PR #147204)

2025-07-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/147204 IndexFromEnd is already of int. >From bf416ae0d374a15107b8e742660bd985a7d9b2d8 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 5 Jul 2025 17:57:13 -0700 Subject: [PATCH] [Serialization] Remove an

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #147203)

2025-07-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/147203 StorageClass is already of spirv::StorageClass. >From 22b9a1ae6d4874a50586c369a47136f97a60b66c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 5 Jul 2025 10:47:10 -0700 Subject: [PATCH] [Sema] Rem

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #147154)

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

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #147154)

2025-07-05 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/147154 BitWidth is already of Expr *. >From 5c55d621391595a2066c4d675b153d637483c79a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 4 Jul 2025 18:42:46 -0700 Subject: [PATCH] [Sema] Remove an unnecessar

[clang] [clang] Fix a typo in documentation (PR #147128)

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

[clang] [clang] Fix a typo in documentation (PR #147128)

2025-07-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata edited https://github.com/llvm/llvm-project/pull/147128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] Fix a typo in documentation (PR #147128)

2025-07-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/147128 None >From 2415ca3a80794508f5973475ab6d3ce26c1a8687 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 4 Jul 2025 21:45:19 -0700 Subject: [PATCH] [lldb] Fix a typo in documentation --- clang/docs/De

[clang] [Driver] Use range-based for loops (NFC) (PR #146987)

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

[clang] [Index] Remove an unnecessary cast (NFC) (PR #146944)

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

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146985)

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

[clang] [Serialization] Remove an unnecessary cast (NFC) (PR #146986)

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

[clang] [Serialization] Remove an unnecessary cast (NFC) (PR #146986)

2025-07-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata edited https://github.com/llvm/llvm-project/pull/146986 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Use range-based for loops (NFC) (PR #146987)

2025-07-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146987 Note that LLVM Coding Standards discourages std::for_each and llvm::for_each unless the callable object already exists. >From 9a696b94c3ff9aa8bd64305570f1ef9b6d14be19 Mon Sep 17 00:00:00 2001 From: Kazu

[clang] [Lambda] Remove an unnecessary cast (NFC) (PR #146986)

2025-07-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146986 Lambda is already of CXXRecordDecl *. >From 171b13caff2e97c81d4a5091c6be912abb04c926 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 3 Jul 2025 16:37:23 -0700 Subject: [PATCH] [Lambda] Remove an u

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146985)

2025-07-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146985 Decl is already of FunctionDecl *. >From 0c026bfa15e41798ea1df03a31d5f4a7a2d691c3 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 3 Jul 2025 16:34:38 -0700 Subject: [PATCH] [Sema] Remove an unnece

[clang] [Index] Remove an unnecessary cast (NFC) (PR #146944)

2025-07-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146944 We don't need to cast twice to the same type. >From 03383da4eee7f35bdf1148b37cb44a2056b547d0 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 3 Jul 2025 12:04:54 -0700 Subject: [PATCH] [Index] Remo

[clang] [clang] Use range-based for loops (NFC) (PR #146811)

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

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146808)

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

[clang] [clang] Use range-based for loops (NFC) (PR #146811)

2025-07-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146811 Note that LLVM Coding Standards discourages std::for_each and llvm::for_each unless the callable object already exists. >From b8285abad935fd37196719b7f3b81cf0af0767b5 Mon Sep 17 00:00:00 2001 From: Kazu

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146808)

2025-07-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146808 The only use of BW is to initialize BitWidth. This patch renames BW to BitWdith while removing the cast statement. >From 27461a27118922c384e6bd97b9d0a9d6848960dc Mon Sep 17 00:00:00 2001 From: Kazu Hira

[clang] [StaticAnalyzer] Remove unnecessary casts (NFC) (PR #146706)

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

[clang-tools-extra] [clangd] Drop const from a return type (NFC) (PR #146707)

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

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146703)

2025-07-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/146703 >From a3d3b9476d01b12ce0557465e99f8f85efe9e0fc Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 1 Jul 2025 20:54:12 -0700 Subject: [PATCH] [Sema] Remove an unnecessary cast (NFC) The only use of Rec

[clang-tools-extra] [clangd] Drop const from a return type (NFC) (PR #146707)

2025-07-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146707 We don't need const on the return type. >From 4632ba6425e7cf1793e665169acdae85e5a9b7bd Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 1 Jul 2025 20:57:50 -0700 Subject: [PATCH] [clangd] Drop cons

[clang] [StaticAnalyzer] Remove unnecessary casts (NFC) (PR #146706)

2025-07-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146706 N is already of ExplodedNode *. >From 698813a9dc8d286913f302c5fc498144d2406bc1 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 1 Jul 2025 20:55:55 -0700 Subject: [PATCH] [StaticAnalyzer] Remove un

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146703)

2025-07-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146703 The only use of Receiver is to initialize RecExpr. This patch renames Receiver to RecExpr while removing the cast statement. >From 3696ccde6b64fa7a10370d51e941be173112e06a Mon Sep 17 00:00:00 2001 From:

[clang] [TableGen] Use range-based for loops (NFC) (PR #146626)

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

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146622)

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

[clang-tools-extra] [clangd] Drop const from a return type (NFC) (PR #146623)

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

[clang] [TableGen] Use range-based for loops (NFC) (PR #146626)

2025-07-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146626 None >From c60f76a8c5aa9bdb6ba0f08f4a1e479a87761d29 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 30 Jun 2025 11:27:39 -0700 Subject: [PATCH] [TableGen] Use range-based for loops (NFC) --- clan

[clang-tools-extra] [clangd] Drop const from a return type (NFC) (PR #146623)

2025-07-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146623 We don't need const on a return type. >From 2a072761c8f3b14d22e36aae1c84c956a067b59a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 1 Jul 2025 19:57:31 -0700 Subject: [PATCH] [clangd] Drop const

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146622)

2025-07-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146622 Since both alignment and Alignment are of the same type, this patch renames alignment to Alignment while removing the cast statement. >From 451762e9cc09176fecbcb68ab5d62be53d3807c7 Mon Sep 17 00:00:00 20

[clang] [Analysis] Remove an unnecessary cast (NFC) (PR #146547)

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

[clang] [Analysis] Remove an unnecessary cast (NFC) (PR #146547)

2025-07-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146547 ME is already of ObjCMessageExpr *. >From e0f784569b26f2a8dd52fb73c1fd142f2d37ca1b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 1 Jul 2025 07:49:58 -0700 Subject: [PATCH] [Analysis] Remove an u

[clang] [Analysis] Use range-based for loops (NFC) (PR #146466)

2025-06-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146466 None >From 1480b40e0ea317111b432465493b746c10706ffc Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 29 Jun 2025 12:27:42 -0700 Subject: [PATCH] [Analysis] Use range-based for loops (NFC) --- clan

[clang] [CodeGen] Remove unnecessary casts (NFC) (PR #146463)

2025-06-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146463 Both of these functions return void. >From ad23a71d5148d200f1db8c307ca3d60d1c229a56 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 30 Jun 2025 10:15:12 -0700 Subject: [PATCH] [CodeGen] Remove unn

[clang] [Basic] Drop const from a return type (NFC) (PR #146382)

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

[clang] [CodeGen] Remove an unnecessary cast (NFC) (PR #146380)

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

[clang] [Basic] Drop const from a return type (NFC) (PR #146382)

2025-06-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146382 We don't need const on a return type. >From a43c0a81e99d409f8e7beb4c13be86accb57b3b6 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 29 Jun 2025 19:28:38 -0700 Subject: [PATCH] [Basic] Drop const

[clang] [CodeGen] Remove an unnecessary cast (NFC) (PR #146380)

2025-06-30 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146380 E is already of Expr * and shares the same declaration among all these cases. >From 3af2bd3b3743d16c45f759ecc38eaa0167e777d4 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 29 Jun 2025 12:15:46 -0

[clang] [clang] Remove unused includes (NFC) (PR #146254)

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

[clang] [clang] Remove unused includes (NFC) (PR #146254)

2025-06-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146254 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang-tools-extra] [modularize] Use std::tie to implement operator< (NFC) (PR #146220)

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

[clang-tools-extra] [modularize] Use std::tie to implement operator< (NFC) (PR #146220)

2025-06-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146220 std::tie clearly expresses the intent while slightly shortening the code. >From 5a7e851dd568fe212ad0d497b3b090318cfc8857 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 27 Jun 2025 22:10:27 -0700

[clang] [Basic] Use StringRef::drop_back (NFC) (PR #146195)

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

[clang] [llvm] [mlir] [ADT] Deprecate MutableArrayRef(std::nullopt) (PR #146113)

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

[clang] [llvm] [mlir] [ADT] Deprecate MutableArrayRef(std::nullopt) (PR #146113)

2025-06-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146113 ArrayRef(std::nullopt) just got deprecated. This patch does the same to MutableArrayRef(std::nullopt). Since there are only a couple of uses, this patch does migration and deprecation at the same time.

[clang] a460aa1 - [Sema] Fix a warning

2025-06-27 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-06-27T08:15:06-07:00 New Revision: a460aa1071c90e849144a5ca2c11b3016e1dc2a0 URL: https://github.com/llvm/llvm-project/commit/a460aa1071c90e849144a5ca2c11b3016e1dc2a0 DIFF: https://github.com/llvm/llvm-project/commit/a460aa1071c90e849144a5ca2c11b3016e1dc2a0.diff L

[clang] [clang] Use llvm::is_contained instead of llvm::all_of (NFC) (PR #145843)

2025-06-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/145843 llvm::is_contained is shorter than llvm::all_of plus a lambda. >From 61c8b69ad8e34b51e10f6f9530604dd8a9d56cdd Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 25 Jun 2025 08:53:51 -0700 Subject: [P

[clang-tools-extra] [clangd] Migrate away from std::nullopt (NFC) (PR #145841)

2025-06-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/145841 ArrayRef has a constructor that accepts std::nullopt. This constructor dates back to the days when we still had llvm::Optional. Since the use of std::nullopt outside the context of std::optional is kind

[clang] [ASTMatchers] Migrate away from ArrayRef(std::nullopt) (NFC) (PR #145840)

2025-06-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/145840 ArrayRef has a constructor that accepts std::nullopt. This constructor dates back to the days when we still had llvm::Optional. Since the use of std::nullopt outside the context of std::optional is kind

[clang] [mlir] [mlir] Migrate away from std::nullopt (NFC) (PR #145523)

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

[clang-tools-extra] df79c40 - [clang-tidy Fix a warning

2025-06-25 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-06-25T10:14:34-07:00 New Revision: df79c40c988a707d8458952df04afe82f77ffb0f URL: https://github.com/llvm/llvm-project/commit/df79c40c988a707d8458952df04afe82f77ffb0f DIFF: https://github.com/llvm/llvm-project/commit/df79c40c988a707d8458952df04afe82f77ffb0f.diff L

[clang] [mlir] [mlir] Migrate away from std::nullopt (NFC) (PR #145523)

2025-06-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/145523 >From 34881c8ba2aa5495b5e41bf360d7086bd1c1ba17 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 24 Jun 2025 07:17:29 -0700 Subject: [PATCH 1/3] [mlir] Migrate away from std::nullopt (NFC) ArrayRef h

[clang] [mlir] [mlir] Migrate away from std::nullopt (NFC) (PR #145523)

2025-06-25 Thread Kazu Hirata via cfe-commits
@@ -1060,7 +1060,7 @@ makeMatcherAutoMarshall(ReturnType (*Func)(), StringRef MatcherName) { BuildReturnTypeVector::build(RetTypes); return std::make_unique( matcherMarshall0, reinterpret_cast(Func), - MatcherName, RetTypes, std::nullopt); + MatcherName, Re

[clang] 096cad5 - [Serialization] Fix a warning

2025-06-25 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-06-25T07:53:24-07:00 New Revision: 096cad59dff5718924882f1a5c775cab49e888a9 URL: https://github.com/llvm/llvm-project/commit/096cad59dff5718924882f1a5c775cab49e888a9 DIFF: https://github.com/llvm/llvm-project/commit/096cad59dff5718924882f1a5c775cab49e888a9.diff L

[clang] [mlir] [mlir] Migrate away from std::nullopt (NFC) (PR #145523)

2025-06-25 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: Friendly ping. Thanks! https://github.com/llvm/llvm-project/pull/145523 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [mlir] [mlir] Migrate away from std::nullopt (NFC) (PR #145523)

2025-06-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/145523 >From 34881c8ba2aa5495b5e41bf360d7086bd1c1ba17 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 24 Jun 2025 07:17:29 -0700 Subject: [PATCH 1/2] [mlir] Migrate away from std::nullopt (NFC) ArrayRef h

[clang] [mlir] [mlir] Migrate away from std::nullopt (NFC) (PR #145523)

2025-06-24 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/145523 ArrayRef has a constructor that accepts std::nullopt. This constructor dates back to the days when we still had llvm::Optional. Since the use of std::nullopt outside the context of std::optional is kind

[clang] [CodeGen] Use range-based for loops (NFC) (PR #145142)

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

[clang] [CodeGen] Use range-based for loops (NFC) (PR #145142)

2025-06-20 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/145142 None >From 4f17684775a8fba436a1ffa1af309b5739010951 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 19 Jun 2025 15:11:29 -0700 Subject: [PATCH] [CodeGen] Use range-based for loops (NFC) --- clang

[clang] [clang] Migrate away from ArrayRef(std::nullopt) (NFC) (PR #144982)

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

[clang] [clang] Migrate away from ArrayRef(std::nullopt) (NFC) (PR #144982)

2025-06-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144982 ArrayRef has a constructor that accepts std::nullopt. This constructor dates back to the days when we still had llvm::Optional. Since the use of std::nullopt outside the context of std::optional is kind

[clang] [CodeGen] Use range-based for loops (NFC) (PR #144939)

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

[clang] [TableGen] Use ListSeparator (NFC) (PR #144936)

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

[clang] [CodeGen] Use range-based for loops (NFC) (PR #144939)

2025-06-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144939 None >From 2b6ab2eb7a999f2f56ef637b00048388be00a6db Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 15 Jun 2025 21:53:53 -0700 Subject: [PATCH] [CodeGen] Use range-based for loops (NFC) --- clang

[clang] [TableGen] Use ListSeparator (NFC) (PR #144936)

2025-06-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144936 Note that an instance of ListSeparator evaluates to the empty string for the first time and then ", " for subsequent references. >From f0907a039a6de8fe305a5eac1b4e41fd1adff7bd Mon Sep 17 00:00:00 2001 Fr

[clang] [clang] Use StringRef in range-based for loops (NFC) (PR #144242)

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

[clang] [clang] Remove unused includes (NFC) (PR #144285)

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

[clang] [clang] Remove unused includes (NFC) (PR #144285)

2025-06-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/144285 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [llvm] [AVR] Add many new AVR MCU model definitions (PR #144229)

2025-06-15 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: @tomtor @benshi001 I just tried your latest revision on the top of tree, and both `check-llvm` and `check-clang` passed. https://github.com/llvm/llvm-project/pull/144229 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [Sema] Use a range-based for loop (NFC) (PR #144252)

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

[clang] [TableGen] Use range-based for loops (NFC) (PR #144250)

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

  1   2   3   4   5   6   7   8   9   10   >