[clang] [clang-tools-extra] [llvm] [ADT] Refactor StringMap iterators (NFC) (PR #156137)

2025-08-29 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/156137 StringMap has four iterator classes: - StringMapIterBase - StringMapIterator - StringMapConstIterator - StringMapKeyIterator This patch consolidates the first three into one class, namely StringMapIterBa

[clang] [llvm] Remove some "DeprecatedSmallSet is deprecated" warnings from the build (PR #155407)

2025-08-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. Thank you for taking care of this! https://github.com/llvm/llvm-project/pull/155407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] e7d9b79 - [Interpreter] Fix a warning

2025-08-26 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-08-26T10:21:35-07:00 New Revision: e7d9b79348f402aac26cccfd989dcfdcdabd560f URL: https://github.com/llvm/llvm-project/commit/e7d9b79348f402aac26cccfd989dcfdcdabd560f DIFF: https://github.com/llvm/llvm-project/commit/e7d9b79348f402aac26cccfd989dcfdcdabd560f.diff L

[clang] [clang-tools-extra] [clangd] extend and rearrange doxygen hover documentation (PR #152918)

2025-08-25 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: @tcottin @emaxx-google I've landed 83910de75a56f7bf8c11ce20020d2f1168c935b7 to fix a warning from this PR. I see that you are putting `SymbolKind::IncludeDirective` right next to `SymbolKind::Unknown` in `clang-tools-extra/clangd/CodeComplete.cpp`, so I'm doing the same

[clang] 83910de - [libclang] Fix a warning

2025-08-25 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-08-25T13:33:22-07:00 New Revision: 83910de75a56f7bf8c11ce20020d2f1168c935b7 URL: https://github.com/llvm/llvm-project/commit/83910de75a56f7bf8c11ce20020d2f1168c935b7 DIFF: https://github.com/llvm/llvm-project/commit/83910de75a56f7bf8c11ce20020d2f1168c935b7.diff L

[clang] [clang] Remove redundant control flow statements (NFC) (PR #155138)

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

[clang] [clang] Remove redundant control flow statements (NFC) (PR #155138)

2025-08-23 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > The title needs to be more specific. Oops. Thank you for pointing this out. https://github.com/llvm/llvm-project/pull/155138 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [clang] Remove redundant control flow statements (NFC) (PR #155138)

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

[clang] [clang] Remove redundant control flow statements (NFC) (PR #155138)

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

[clang] cleanup 20250823 ret clang (PR #155138)

2025-08-23 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/155138 - **[clang] Remove redundant control flow statements (NFC)** - **[FLowSensitive] Remove unused using decls (NFC)** >From dd372e97d9ec98eaa92e9aea5d853b1cb01a5eb4 Mon Sep 17 00:00:00 2001 From: Kazu Hirat

[clang] [clang] Proofread AutomaticReferenceCounting.rst (PR #155071)

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

[clang] [clang] Proofread AutomaticReferenceCounting.rst (PR #155071)

2025-08-22 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/155071 None >From b4852fcf10ec2c8e6bfad0a9efb308fd7e9fdb8b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 22 Aug 2025 13:14:57 -0700 Subject: [PATCH] [clang] Proofread AutomaticReferenceCounting.rst ---

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

2025-08-22 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/154889 ___ 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 #154889)

2025-08-21 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/154889 getAsExpr() already returns Expr *. >From c96a06285e73350b7b019821d04c26d3722985ec Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 21 Aug 2025 20:39:44 -0700 Subject: [PATCH] [Sema] Remove an unne

[clang] [clang-tools-extra] [lldb] [lldb] Add missing case statements for SubstBuiltinTemplatePack (PR #154606)

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

[clang] [clang-tools-extra] [Clang] Add a builtin that deduplicate types into a pack (PR #106730)

2025-08-20 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: @ilya-biryukov After this PR, I'm getting: ``` lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4148:11: error: enumeration value 'SubstBuiltinTemplatePack' not handled in switch [-Werror,-Wswitch] 4148 | switch (qual_type->getTypeClass()) { | ^

[clang] 65de318 - [Sema] Fix a warning

2025-08-20 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-08-20T09:56:27-07:00 New Revision: 65de318d186c815f43b892aa20b98c50f22ab6fe URL: https://github.com/llvm/llvm-project/commit/65de318d186c815f43b892aa20b98c50f22ab6fe DIFF: https://github.com/llvm/llvm-project/commit/65de318d186c815f43b892aa20b98c50f22ab6fe.diff L

[clang] f487c0e - [AST] Fix warnings

2025-08-20 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2025-08-20T08:58:59-07:00 New Revision: f487c0e63cee9aba57335b1c509f7780de849f65 URL: https://github.com/llvm/llvm-project/commit/f487c0e63cee9aba57335b1c509f7780de849f65 DIFF: https://github.com/llvm/llvm-project/commit/f487c0e63cee9aba57335b1c509f7780de849f65.diff L

[clang] [clang] Proofread StandardCPlusPlusModules.rst (PR #154474)

2025-08-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/154474 ___ 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] Replace SmallSet with SmallPtrSet (NFC) (PR #154365)

2025-08-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/154365 ___ 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] Replace SmallSet with SmallPtrSet (NFC) (PR #154365)

2025-08-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/154365 This patch replaces SmallSet with SmallPtrSet. Note that SmallSet.h "redirects" SmallSet to SmallPtrSet for pointer element types: template class SmallSet : public SmallPtrSet {}; We only have 10 i

[clang] [clang] Replace SmallSet with SmallPtrSet (NFC) (PR #154262)

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

[clang] [clang] Proofread SourceBasedCodeCoverage.rst (PR #154050)

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

[clang] [clang] Proofread SourceBasedCodeCoverage.rst (PR #154050)

2025-08-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/154050 None >From 86d8710e45be438c54abf190e035332c1e4b9759 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 17 Aug 2025 19:16:23 -0700 Subject: [PATCH] [clang] Proofread SourceBasedCodeCoverage.rst --- c

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

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

[clang] [libclang] Remove unnecessary casts (NFC) (PR #152259)

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

[clang] [libclang] Remove unnecessary casts (NFC) (PR #152259)

2025-08-05 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/152259 stringVal is already of char *. >From 633a2261fac10c1f271905603955c9ef14d81798 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 5 Aug 2025 08:03:57 -0700 Subject: [PATCH] [libclang] Remove unnecess

[clang] [clang] Use llvm::iterator_range::empty (NFC) (PR #152088)

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

[clang] [clang] Use llvm::iterator_range::empty (NFC) (PR #152088)

2025-08-04 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/152088 None >From ea033b3a634653f842eb07cf19923e2a09d286c7 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 2 Aug 2025 10:26:39 -0700 Subject: [PATCH] [clang] Use llvm::iterator_range::empty (NFC) --- cl

[clang] [AST] Use llvm::iterator_range::empty (NFC) (PR #151904)

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

[clang] [AST] Use llvm::iterator_range::empty (NFC) (PR #151904)

2025-08-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151904 None >From 707fa648c0cf4de66adf34d307dec3e41559f962 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 3 Aug 2025 11:23:05 -0700 Subject: [PATCH] [AST] Use llvm::iterator_range::empty (NFC) --- clan

[clang] [Sema] Use llvm::iterator_range::empty (NFC) (PR #151852)

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

[clang] [Sema] Use llvm::iterator_range::empty (NFC) (PR #151852)

2025-08-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151852 None >From 04c37957a1020ce5f7ee511f68536c2c8ea80132 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 2 Aug 2025 23:23:12 -0700 Subject: [PATCH] [Sema] Use llvm::iterator_range::empty (NFC) --- cla

[clang-tools-extra] [clang-tidy] Use llvm::none_of (NFC) (PR #151801)

2025-08-02 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > As a side note, should we create a clang-tidy check to detect these cases > automatically: to use `llvm` algorithms instead of `std` and so on? Is it > documented that we should always prefer the `llvm` version? I see a lot of > work by @kazutakahirata and wish to make

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

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

[clang-tools-extra] [clang-tidy] Use llvm::none_of (NFC) (PR #151801)

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

[clang] [AST] Use llvm::iterator_range::empty (NFC) (PR #151800)

2025-08-02 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/151800 ___ 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 #151802)

2025-08-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151802 None >From fbc1226debd167bd6aab94e00e549251996de8d7 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 31 Jul 2025 15:27:43 -0700 Subject: [PATCH] [clang] Proofread LanguageExtensions.rst --- clang/

[clang-tools-extra] [clang-tidy] Use llvm::none_of (NFC) (PR #151801)

2025-08-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151801 We can pass a range to llvm::none_if. >From 97eaab273c441f8e64702a89e9f9b71bd6b1b1cc Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 31 Jul 2025 19:51:08 -0700 Subject: [PATCH] [clang-tidy] Use ll

[clang] [AST] Use llvm::iterator_range::empty (NFC) (PR #151800)

2025-08-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151800 With empty, we don't have to repeat the whole expression. >From 1b1616dacce8fa504baa05d14616d1654130c59b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 31 Jul 2025 19:56:52 -0700 Subject: [PATCH]

[clang] [clang] Proofread InternalsManual.rst (PR #151626)

2025-07-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151626 None >From e71e3f5a7ff85e135cb30e5a667e4eedd48f5a63 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 31 Jul 2025 19:18:53 -0700 Subject: [PATCH] [clang] Proofread InternalsManual.rst --- clang/doc

[clang] [Analysis] Avoid creating a temporary instance of std::string (NFC) (PR #151625)

2025-07-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151625 hasName takes StringRef, so we don't need to create a temporary instance of std::string. >From 7840655c7f8db70b5105402598c154eb6f44966d Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 31 Jul 2025

[clang] [Basic] Remove deprecated methods in CustomizableOptional (PR #151444)

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

[clang] [llvm] Proofread LangRef.rst (PR #151443)

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

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

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

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

2025-07-29 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151278 getSignificantBits() already returns unsigned. >From b54d6c9890e2ea169ee70c7ba27ca4403b05b7d0 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 29 Jul 2025 09:04:49 -0700 Subject: [PATCH] [AST] Remo

[clang] [Basic] Remove getVirtualFile (PR #151086)

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

[clang] [Basic] Remove getVirtualFile (PR #151086)

2025-07-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151086 This patch removes getVirtualFile because it has been deprecated for more than 10 months since: commit b1aea98cfa357e23f4bb52232da5f41781f23bff Author: Jan Svoboda Date: Wed Sep 25 10:36:44 2024

[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

  1   2   3   4   5   6   7   8   9   10   >